openMSX
SoundDriver.hh
Go to the documentation of this file.
1#ifndef SOUNDDRIVER_HH
2#define SOUNDDRIVER_HH
3
4#include "Mixer.hh"
5#include <span>
6
7namespace openmsx {
8
10{
11public:
12 virtual ~SoundDriver() = default;
13
16 virtual void mute() = 0;
17
20 virtual void unmute() = 0;
21
25 [[nodiscard]] virtual unsigned getFrequency() const = 0;
26
30 [[nodiscard]] virtual unsigned getSamples() const = 0;
31
32 virtual void uploadBuffer(std::span<const StereoFloat> buffer) = 0;
33
34protected:
35 SoundDriver() = default;
36};
37
38} // namespace openmsx
39
40#endif
virtual void unmute()=0
Unmute the sound system.
virtual void mute()=0
Mute the sound system.
virtual void uploadBuffer(std::span< const StereoFloat > buffer)=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'.
virtual ~SoundDriver()=default
This file implemented 3 utility functions:
Definition Autofire.cc:11