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 (Reactor &reactor, unsigned wantedFreq, unsigned samples)
 
 SDLSoundDriver (const SDLSoundDriver &)=delete
 
 SDLSoundDriver (SDLSoundDriver &&)=delete
 
SDLSoundDriveroperator= (const SDLSoundDriver &)=delete
 
SDLSoundDriveroperator= (SDLSoundDriver &&)=delete
 
 ~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 16 of file SDLSoundDriver.hh.

Constructor & Destructor Documentation

◆ SDLSoundDriver() [1/3]

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

Definition at line 21 of file SDLSoundDriver.cc.

◆ SDLSoundDriver() [2/3]

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

◆ SDLSoundDriver() [3/3]

openmsx::SDLSoundDriver::SDLSoundDriver ( SDLSoundDriver &&  )
delete

◆ ~SDLSoundDriver()

openmsx::SDLSoundDriver::~SDLSoundDriver ( )
override

Definition at line 48 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 78 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 83 of file SDLSoundDriver.cc.

◆ mute()

void openmsx::SDLSoundDriver::mute ( )
overridevirtual

Mute the sound system.

Implements openmsx::SoundDriver.

Definition at line 61 of file SDLSoundDriver.cc.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ unmute()

void openmsx::SDLSoundDriver::unmute ( )
overridevirtual

Unmute the sound system.

Implements openmsx::SoundDriver.

Definition at line 69 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: