[asterisk-commits] file: trunk r179291 - /trunk/main/audiohook.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 2 08:13:50 CST 2009
Author: file
Date: Mon Mar 2 08:13:45 2009
New Revision: 179291
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=179291
Log:
Fix issue where changing the volume of both directions of audio did not work.
(closes issue #14574)
Reported by: KNK
Patches:
audiohook_volume_fix.diff uploaded by KNK (license 545)
Modified:
trunk/main/audiohook.c
Modified: trunk/main/audiohook.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/audiohook.c?view=diff&rev=179291&r1=179290&r2=179291
==============================================================================
--- trunk/main/audiohook.c (original)
+++ trunk/main/audiohook.c Mon Mar 2 08:13:45 2009
@@ -915,7 +915,8 @@
/* Now based on the direction set the proper value */
if (direction == AST_AUDIOHOOK_DIRECTION_READ || direction == AST_AUDIOHOOK_DIRECTION_BOTH) {
audiohook_volume->read_adjustment = volume;
- } else if (direction == AST_AUDIOHOOK_DIRECTION_WRITE || direction == AST_AUDIOHOOK_DIRECTION_BOTH) {
+ }
+ if (direction == AST_AUDIOHOOK_DIRECTION_WRITE || direction == AST_AUDIOHOOK_DIRECTION_BOTH) {
audiohook_volume->write_adjustment = volume;
}
@@ -965,7 +966,8 @@
/* Based on the direction change the specific adjustment value */
if (direction == AST_AUDIOHOOK_DIRECTION_READ || direction == AST_AUDIOHOOK_DIRECTION_BOTH) {
audiohook_volume->read_adjustment += volume;
- } else if (direction == AST_AUDIOHOOK_DIRECTION_WRITE || direction == AST_AUDIOHOOK_DIRECTION_BOTH) {
+ }
+ if (direction == AST_AUDIOHOOK_DIRECTION_WRITE || direction == AST_AUDIOHOOK_DIRECTION_BOTH) {
audiohook_volume->write_adjustment += volume;
}
More information about the asterisk-commits
mailing list