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