openMSX
NullSoundDriver.hh
Go to the documentation of this file.
1#ifndef NULLSOUNDDRIVER_HH
2#define NULLSOUNDDRIVER_HH
3
4#include "SoundDriver.hh"
5
6namespace openmsx {
7
8class NullSoundDriver final : public SoundDriver
9{
10public:
11 void mute() override;
12 void unmute() override;
13
14 [[nodiscard]] unsigned getFrequency() const override;
15 [[nodiscard]] unsigned getSamples() const override;
16
17 void uploadBuffer(std::span<const StereoFloat> buffer) override;
18};
19
20} // namespace openmsx
21
22#endif
void unmute() override
Unmute the sound system.
unsigned getSamples() const override
Get the number of samples that should be created 'per fragment'.
void uploadBuffer(std::span< const StereoFloat > buffer) override
unsigned getFrequency() const override
Returns the actual sample frequency.
void mute() override
Mute the sound system.
This file implemented 3 utility functions:
Definition Autofire.cc:11