mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
part of new mod_shout build for windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10029 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -565,7 +565,8 @@ static void *SWITCH_THREAD_FUNC write_stream_thread(switch_thread_t *thread, voi
|
||||
if (context->channels == 2) {
|
||||
int16_t l[4800] = { 0 };
|
||||
int16_t r[4800] = { 0 };
|
||||
int i, j = 0;
|
||||
int j = 0;
|
||||
switch_size_t i;
|
||||
|
||||
for (i = 0; i < audio_read / 4; i++) {
|
||||
l[i] = audio[j++];
|
||||
@@ -1431,7 +1432,7 @@ static switch_status_t load_config(void)
|
||||
if (!strcmp(var, "decoder")) {
|
||||
switch_set_string(globals.decoder, val);
|
||||
} else if (!strcmp(var, "volume")) {
|
||||
globals.vol = atof(val);
|
||||
globals.vol = (float)atof(val);
|
||||
} else if (!strcmp(var, "outscale")) {
|
||||
int tmp = atoi(val);
|
||||
if (tmp > 0) {
|
||||
|
Reference in New Issue
Block a user