NullAudioStream: Provide factory function

This commit is contained in:
Connor McLaughlin
2019-12-30 00:45:50 +10:00
parent e66214d93e
commit 6176fc4486
3 changed files with 10 additions and 3 deletions

View File

@ -18,3 +18,8 @@ void NullAudioStream::BufferAvailable()
// drop any buffer as soon as they're available
DropBuffer();
}
std::unique_ptr<AudioStream> NullAudioStream::Create()
{
return std::unique_ptr<AudioStream>(new NullAudioStream());
}