dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@179291 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2009-03-02 14:13:45 +00:00
parent 21d93ce816
commit b415a38ac4
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}