Audaspace 1.5.0
A high level audio library.
|
This device plays nothing. More...
#include <NULLDevice.h>
Public Member Functions | |
NULLDevice () | |
Creates a new NULLDevice. | |
virtual DeviceSpecs | getSpecs () const |
Returns the specification of the device. | |
virtual std::shared_ptr< IHandle > | play (std::shared_ptr< IReader > reader, bool keep=false) |
Plays a sound source. | |
virtual std::shared_ptr< IHandle > | play (std::shared_ptr< ISound > sound, bool keep=false) |
Plays a sound source. | |
virtual void | stopAll () |
Stops all playing sounds. | |
virtual void | lock () |
Locks the device. | |
virtual void | unlock () |
Unlocks the previously locked device. | |
virtual float | getVolume () const |
Retrieves the overall device volume. | |
virtual void | setVolume (float volume) |
Sets the overall device volume. | |
virtual ISynchronizer * | getSynchronizer () |
Retrieves the synchronizer for this device, which enables accurate synchronization between audio playback and video playback for example. | |
Public Member Functions inherited from IDevice | |
virtual | ~IDevice () |
Destroys the device. | |
Static Public Member Functions | |
static void | registerPlugin () |
Registers this plugin. | |
This device plays nothing.
It is similar to the linux device /dev/null.
|
virtual |
Returns the specification of the device.
Implements IDevice.
|
virtual |
Retrieves the synchronizer for this device, which enables accurate synchronization between audio playback and video playback for example.
Implements IDevice.
|
virtual |
|
virtual |
Locks the device.
Used to make sure that between lock and unlock, no buffers are read, so that it is possible to start, resume, pause, stop or seek several playback handles simultaneously.
Implements IDevice.
|
virtual |
Plays a sound source.
reader | The reader to play. |
keep | When keep is true the sound source will not be deleted but set to paused when its end has been reached. |
Exception | Thrown if there's an unexpected (from the device side) error during creation of the reader. |
Implements IDevice.
|
virtual |
Plays a sound source.
sound | The sound to create the reader for the sound source. |
keep | When keep is true the sound source will not be deleted but set to paused when its end has been reached. |
Exception | Thrown if there's an unexpected (from the device side) error during creation of the reader. |
Implements IDevice.
|
virtual |
|
virtual |
Stops all playing sounds.
Implements IDevice.
|
virtual |
Unlocks the previously locked device.
Implements IDevice.