openMSX
Public Member Functions | List of all members
openmsx::LibAOSoundDriver Class Reference

#include <LibAOSoundDriver.hh>

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

Public Member Functions

 LibAOSoundDriver (unsigned sampleRate, unsigned bufferSize)
 
virtual ~LibAOSoundDriver ()
 
virtual void mute ()
 Mute the sound system. More...
 
virtual void unmute ()
 Unmute the sound system. More...
 
virtual unsigned getFrequency () const
 Returns the actual sample frequency. More...
 
virtual unsigned getSamples () const
 Get the number of samples that should be created 'per fragment'. More...
 
virtual void uploadBuffer (short *buffer, unsigned len)
 
- Public Member Functions inherited from openmsx::SoundDriver
virtual ~SoundDriver ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 11 of file LibAOSoundDriver.hh.

Constructor & Destructor Documentation

openmsx::LibAOSoundDriver::LibAOSoundDriver ( unsigned  sampleRate,
unsigned  bufferSize 
)

Definition at line 11 of file LibAOSoundDriver.cc.

References openmsx::DiskImageUtils::format().

openmsx::LibAOSoundDriver::~LibAOSoundDriver ( )
virtual

Definition at line 32 of file LibAOSoundDriver.cc.

Member Function Documentation

unsigned openmsx::LibAOSoundDriver::getFrequency ( ) const
virtual

Returns the actual sample frequency.

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

Implements openmsx::SoundDriver.

Definition at line 46 of file LibAOSoundDriver.cc.

unsigned openmsx::LibAOSoundDriver::getSamples ( ) const
virtual

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 51 of file LibAOSoundDriver.cc.

void openmsx::LibAOSoundDriver::mute ( )
virtual

Mute the sound system.

Implements openmsx::SoundDriver.

Definition at line 38 of file LibAOSoundDriver.cc.

void openmsx::LibAOSoundDriver::unmute ( )
virtual

Unmute the sound system.

Implements openmsx::SoundDriver.

Definition at line 42 of file LibAOSoundDriver.cc.

void openmsx::LibAOSoundDriver::uploadBuffer ( short *  buffer,
unsigned  len 
)
virtual

Implements openmsx::SoundDriver.

Definition at line 56 of file LibAOSoundDriver.cc.


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