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. More...
 
void unmute () override
 Unmute the sound system. More...
 
unsigned getFrequency () const override
 Returns the actual sample frequency. More...
 
unsigned getSamples () const override
 Get the number of samples that should be created 'per fragment'. More...
 
void uploadBuffer (float *buffer, unsigned len) 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 
)

◆ ~SDLSoundDriver()

openmsx::SDLSoundDriver::~SDLSoundDriver ( )
override

Definition at line 44 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 74 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 79 of file SDLSoundDriver.cc.

◆ mute()

void openmsx::SDLSoundDriver::mute ( )
overridevirtual

Mute the sound system.

Implements openmsx::SoundDriver.

Definition at line 57 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 65 of file SDLSoundDriver.cc.

◆ uploadBuffer()

void openmsx::SDLSoundDriver::uploadBuffer ( float *  buffer,
unsigned  len 
)
overridevirtual

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