diff --git a/dom/media/webaudio/AudioBlock.h b/dom/media/webaudio/AudioBlock.h index 5d0d9e17aad0..c9a5bb400983 100644 --- a/dom/media/webaudio/AudioBlock.h +++ b/dom/media/webaudio/AudioBlock.h @@ -23,6 +23,7 @@ class AudioBlock : private AudioChunk public: AudioBlock() { mDuration = WEBAUDIO_BLOCK_SIZE; + mBufferFormat = AUDIO_FORMAT_SILENCE; } // No effort is made in constructors to ensure that mBufferIsDownstreamRef // is set because the block is expected to be a temporary and so the