diff options
author | Joshua Colp <jcolp@digium.com> | 2009-03-02 14:13:45 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2009-03-02 14:13:45 +0000 |
commit | 93749ba001d55f463e32b08a6053b32ef64a30af (patch) | |
tree | d8c99176c2c86652176299bf7fdecfca9d5c60e0 /main/audiohook.c | |
parent | 932cef55fd89a3fa1608468d8ef3f3a28e601004 (diff) |
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@179291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/audiohook.c')
-rw-r--r-- | main/audiohook.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/audiohook.c b/main/audiohook.c index 2b0beac01..8156d0ff3 100644 --- a/main/audiohook.c +++ b/main/audiohook.c @@ -915,7 +915,8 @@ int ast_audiohook_volume_set(struct ast_channel *chan, enum ast_audiohook_direct /* 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 @@ int ast_audiohook_volume_adjust(struct ast_channel *chan, enum ast_audiohook_dir /* 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; } |