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(float* buffer, unsigned len) override;
18 };
19 
20 } // namespace openmsx
21 
22 #endif
openmsx::NullSoundDriver
Definition: NullSoundDriver.hh:9
openmsx::NullSoundDriver::mute
void mute() override
Mute the sound system.
Definition: NullSoundDriver.cc:5
openmsx::NullSoundDriver::uploadBuffer
void uploadBuffer(float *buffer, unsigned len) override
Definition: NullSoundDriver.cc:23
openmsx::SoundDriver
Definition: SoundDriver.hh:7
openmsx::NullSoundDriver::unmute
void unmute() override
Unmute the sound system.
Definition: NullSoundDriver.cc:9
openmsx::NullSoundDriver::getFrequency
unsigned getFrequency() const override
Returns the actual sample frequency.
Definition: NullSoundDriver.cc:13
SoundDriver.hh
openmsx::NullSoundDriver::getSamples
unsigned getSamples() const override
Get the number of samples that should be created 'per fragment'.
Definition: NullSoundDriver.cc:18
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5