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() {}
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(short* buffer, unsigned len) = 0;
30 
31 protected:
33 };
34 
35 } // namespace openmsx
36 
37 #endif
virtual void uploadBuffer(short *buffer, unsigned len)=0
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'.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:7
virtual void unmute()=0
Unmute the sound system.
virtual ~SoundDriver()
Definition: SoundDriver.hh:9
virtual void mute()=0
Mute the sound system.