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
virtual unsigned getFrequency() const =0
Returns the actual sample frequency.
virtual unsigned getSamples() const =0
Get the number of samples that should be created 'per fragment'.
virtual void uploadBuffer(float *buffer, unsigned len)=0
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
virtual void unmute()=0
Unmute the sound system.
virtual void mute()=0
Mute the sound system.
virtual ~SoundDriver()=default