openMSX
SoundDriver.hh
Go to the documentation of this file.
1 #ifndef SOUNDDRIVER_HH
2 #define SOUNDDRIVER_HH
3 
4 namespace openmsx {
5 
7 {
8 public:
9  virtual ~SoundDriver() = default;
10 
13  virtual void mute() = 0;
14 
17  virtual void unmute() = 0;
18 
22  virtual unsigned getFrequency() const = 0;
23 
27  virtual unsigned getSamples() const = 0;
28 
29  virtual void uploadBuffer(float* buffer, unsigned len) = 0;
30 
31 protected:
32  SoundDriver() = default;
33 };
34 
35 } // namespace openmsx
36 
37 #endif
openmsx::SoundDriver::getSamples
virtual unsigned getSamples() const =0
Get the number of samples that should be created 'per fragment'.
openmsx::SoundDriver
Definition: SoundDriver.hh:7
openmsx::SoundDriver::unmute
virtual void unmute()=0
Unmute the sound system.
openmsx::SoundDriver::mute
virtual void mute()=0
Mute the sound system.
openmsx::SoundDriver::~SoundDriver
virtual ~SoundDriver()=default
openmsx::SoundDriver::SoundDriver
SoundDriver()=default
openmsx::SoundDriver::getFrequency
virtual unsigned getFrequency() const =0
Returns the actual sample frequency.
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::SoundDriver::uploadBuffer
virtual void uploadBuffer(float *buffer, unsigned len)=0