mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 901633 - Part 9 - Make the necessary changes to VoEExternalMediaImpl::ExternalRecordingInsertData so that it the number of channels is forwarded down the webrtc.org code. r=jesup
This commit is contained in:
parent
a7034137c7
commit
3c95af093d
@ -214,7 +214,10 @@ int VoEExternalMediaImpl::ExternalRecordingInsertData(
|
||||
}
|
||||
|
||||
uint16_t blockSize = samplingFreqHz / 100;
|
||||
uint32_t nBlocks = lengthSamples / blockSize;
|
||||
// We know the number of samples for 10ms of audio, so we can derive the
|
||||
// number of channels here:
|
||||
uint32_t channels = lengthSamples * 100 / samplingFreqHz;
|
||||
uint32_t nBlocks = lengthSamples / blockSize / channels;
|
||||
int16_t totalDelayMS = 0;
|
||||
uint16_t playoutDelayMS = 0;
|
||||
|
||||
@ -242,7 +245,7 @@ int VoEExternalMediaImpl::ExternalRecordingInsertData(
|
||||
shared_->transmit_mixer()->PrepareDemux(
|
||||
(const int8_t*)(&speechData10ms[i*blockSize]),
|
||||
blockSize,
|
||||
1,
|
||||
channels,
|
||||
samplingFreqHz,
|
||||
totalDelayMS,
|
||||
0,
|
||||
|
Loading…
Reference in New Issue
Block a user