Audaspace 1.7.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 void | seekSynchronizer (double time) |
virtual double | getSynchronizerPosition () |
virtual void | playSynchronizer () |
virtual void | stopSynchronizer () |
virtual void | setSyncCallback (syncFunction function, void *data) |
virtual int | isSynchronizerPlaying () |
Public Member Functions inherited from IDevice | |
virtual | ~IDevice () |
Destroys the device. |
Static Public Member Functions | |
static void | registerPlugin () |
Registers this plugin. |
Additional Inherited Members | |
Public Types inherited from IDevice | |
typedef void(* | syncFunction) (void *, int, float) |
The syncFunction is called when a synchronization event happens. |
This device plays nothing.
It is similar to the linux device /dev/null.
|
virtual |
Returns the specification of the device.
Implements IDevice.
|
virtual |
Implements IDevice.
|
virtual |
|
virtual |
Implements IDevice.
|
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 |
Implements IDevice.
|
virtual |
Implements IDevice.
|
virtual |
Implements IDevice.
|
virtual |
|
virtual |
Stops all playing sounds.
Implements IDevice.
|
virtual |
Implements IDevice.
|
virtual |
Unlocks the previously locked device.
Implements IDevice.