mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 10:15:46 -04:00
Common: Add a NullAudioStream implementation
This commit is contained in:
20
src/common/null_audio_stream.cpp
Normal file
20
src/common/null_audio_stream.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include "null_audio_stream.h"
|
||||
|
||||
NullAudioStream::NullAudioStream() = default;
|
||||
|
||||
NullAudioStream::~NullAudioStream() = default;
|
||||
|
||||
bool NullAudioStream::OpenDevice()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void NullAudioStream::PauseDevice(bool paused) {}
|
||||
|
||||
void NullAudioStream::CloseDevice() {}
|
||||
|
||||
void NullAudioStream::BufferAvailable()
|
||||
{
|
||||
// drop any buffer as soon as they're available
|
||||
DropBuffer();
|
||||
}
|
Reference in New Issue
Block a user