openMSX
NullSoundDriver.hh
Go to the documentation of this file.
1 #ifndef NULLSOUNDDRIVER_HH
2 #define NULLSOUNDDRIVER_HH
3 
4 #include "SoundDriver.hh"
5 
6 namespace openmsx {
7 
8 class NullSoundDriver final : public SoundDriver
9 {
10 public:
11  void mute() override;
12  void unmute() override;
13 
14  unsigned getFrequency() const override;
15  unsigned getSamples() const override;
16 
17  void uploadBuffer(short* buffer, unsigned len) override;
18 };
19 
20 } // namespace openmsx
21 
22 #endif
void unmute() override
Unmute the sound system.
void mute() override
Mute the sound system.
unsigned getFrequency() const override
Returns the actual sample frequency.
unsigned getSamples() const override
Get the number of samples that should be created 'per fragment'.
void uploadBuffer(short *buffer, unsigned len) override