mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
69e592414a
commit
b3e2d47737
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user