mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
fix stereo
This commit is contained in:
parent
bbfd9f7ef3
commit
adbb197414
@ -271,7 +271,7 @@ static switch_status_t switch_vorbis_encode(switch_codec_t *codec,
|
||||
/* uninterleave samples */
|
||||
for (i = 0; i < samples; i++) {
|
||||
for (j = 0; j < channels; j++) {
|
||||
buffer[j][i] = *(data + i) / 32768.f;
|
||||
buffer[j][i] = *(data + channels * i + j) / 32768.f;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user