openMSX
Public Member Functions | List of all members
openmsx::SDLSoundDriver Class Referencefinal

#include <SDLSoundDriver.hh>

Inheritance diagram for openmsx::SDLSoundDriver:
Inheritance graph
[legend]
Collaboration diagram for openmsx::SDLSoundDriver:
Collaboration graph
[legend]

Public Member Functions

 SDLSoundDriver (const SDLSoundDriver &)=delete
 
SDLSoundDriveroperator= (const SDLSoundDriver &)=delete
 
 SDLSoundDriver (Reactor &reactor, unsigned wantedFreq, unsigned samples)
 
 ~SDLSoundDriver () override
 
void mute () override
 Mute the sound system.
 
void unmute () override
 Unmute the sound system.
 
unsigned getFrequency () const override
 Returns the actual sample frequency.
 
unsigned getSamples () const override
 Get the number of samples that should be created 'per fragment'.
 
void uploadBuffer (std::span< const StereoFloat > buffer) override
 
- Public Member Functions inherited from openmsx::SoundDriver
virtual ~SoundDriver ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::SoundDriver
 SoundDriver ()=default
 

Detailed Description

Definition at line 13 of file SDLSoundDriver.hh.

Constructor & Destructor Documentation

◆ SDLSoundDriver() [1/2]

openmsx::SDLSoundDriver::SDLSoundDriver ( const SDLSoundDriver )
delete

◆ SDLSoundDriver() [2/2]

openmsx::SDLSoundDriver::SDLSoundDriver ( Reactor reactor,
unsigned  wantedFreq,
unsigned  samples 
)

Definition at line 18 of file SDLSoundDriver.cc.

◆ ~SDLSoundDriver()

openmsx::SDLSoundDriver::~SDLSoundDriver ( )
override

Definition at line 45 of file SDLSoundDriver.cc.

Member Function Documentation

◆ getFrequency()

unsigned openmsx::SDLSoundDriver::getFrequency ( ) const
overridevirtual

Returns the actual sample frequency.

This might be different from the requested frequency ('frequency' setting).

Implements openmsx::SoundDriver.

Definition at line 75 of file SDLSoundDriver.cc.

◆ getSamples()

unsigned openmsx::SDLSoundDriver::getSamples ( ) const
overridevirtual

Get the number of samples that should be created 'per fragment'.

This is not the same value as the 'samples setting'.

Implements openmsx::SoundDriver.

Definition at line 80 of file SDLSoundDriver.cc.

◆ mute()

void openmsx::SDLSoundDriver::mute ( )
overridevirtual

Mute the sound system.

Implements openmsx::SoundDriver.

Definition at line 58 of file SDLSoundDriver.cc.

◆ operator=()

SDLSoundDriver & openmsx::SDLSoundDriver::operator= ( const SDLSoundDriver )
delete

◆ unmute()

void openmsx::SDLSoundDriver::unmute ( )
overridevirtual

Unmute the sound system.

Implements openmsx::SoundDriver.

Definition at line 66 of file SDLSoundDriver.cc.

◆ uploadBuffer()

void openmsx::SDLSoundDriver::uploadBuffer ( std::span< const StereoFloat buffer)
overridevirtual

The documentation for this class was generated from the following files: