AudioStream: Fix null output

This commit is contained in:
Connor McLaughlin 2022-07-29 22:39:38 +10:00
parent 25b17f1422
commit 66caaf6103

View file

@ -39,7 +39,9 @@ AudioStream::~AudioStream()
std::unique_ptr<AudioStream> AudioStream::CreateNullStream(u32 sample_rate, u32 channels, u32 buffer_ms)
{
return std::unique_ptr<AudioStream>(new AudioStream(sample_rate, channels, buffer_ms, AudioStretchMode::Off));
std::unique_ptr<AudioStream> stream(new AudioStream(sample_rate, channels, buffer_ms, AudioStretchMode::Off));
stream->BaseInitialize();
return stream;
}
u32 AudioStream::GetAlignedBufferSize(u32 size)