mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-29 19:15:38 +00:00
AudioStream: Fix null output
This commit is contained in:
parent
25b17f1422
commit
66caaf6103
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue