openMSX
SoundDriver.hh
Go to the documentation of this file.
1 #ifndef SOUNDDRIVER_HH
2 #define SOUNDDRIVER_HH
3 
4 #include <cstdint>
5 
6 namespace openmsx {
7 
9 {
10 public:
11  virtual ~SoundDriver() {}
12 
15  virtual void mute() = 0;
16 
19  virtual void unmute() = 0;
20 
24  virtual unsigned getFrequency() const = 0;
25 
29  virtual unsigned getSamples() const = 0;
30 
31  virtual void uploadBuffer(int16_t* buffer, unsigned len) = 0;
32 
33 protected:
35 };
36 
37 } // namespace openmsx
38 
39 #endif
virtual unsigned getFrequency() const =0
Returns the actual sample frequency.
virtual void uploadBuffer(int16_t *buffer, unsigned len)=0
virtual unsigned getSamples() const =0
Get the number of samples that should be created &#39;per fragment&#39;.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
virtual void unmute()=0
Unmute the sound system.
virtual ~SoundDriver()
Definition: SoundDriver.hh:11
virtual void mute()=0
Mute the sound system.