Bug 1754615 - Remove default PreBufferFrames in AudioResampler r=padenot

Depends on D138378

Differential Revision: https://phabricator.services.mozilla.com/D138379
This commit is contained in:
Chun-Min Chang 2022-02-10 16:15:40 +00:00
parent 69e592414a
commit b3e2d47737
2 changed files with 3 additions and 3 deletions

View File

@ -357,7 +357,7 @@ class AudioChunkList {
class AudioResampler final {
public:
AudioResampler(uint32_t aInRate, uint32_t aOutRate,
uint32_t aPreBufferFrames = 0);
uint32_t aPreBufferFrames);
/**
* Append input data into the resampler internal buffer. Copy/move of the

View File

@ -1274,7 +1274,7 @@ TEST(TestAudioResampler, ChannelChange_QuadToStereo)
uint32_t in_rate = 24000;
uint32_t out_rate = 48000;
AudioResampler dr(in_rate, out_rate);
AudioResampler dr(in_rate, out_rate, 0);
AudioChunk stereoChunk =
CreateAudioChunk<float>(in_frames, 2, AUDIO_FORMAT_FLOAT32);
@ -1314,7 +1314,7 @@ TEST(TestAudioResampler, ChannelChange_Discontinuity)
uint32_t in_frames = in_rate / 100;
uint32_t out_frames = out_rate / 100;
AudioResampler dr(in_rate, out_rate);
AudioResampler dr(in_rate, out_rate, 0);
AudioChunk monoChunk =
CreateAudioChunk<float>(in_frames, 1, AUDIO_FORMAT_FLOAT32);