68 virtual std::shared_ptr<IHandle>
play(std::shared_ptr<IReader> reader,
bool keep =
false)=0;
80 virtual std::shared_ptr<IHandle>
play(std::shared_ptr<ISound> sound,
bool keep =
false)=0;
122 virtual void seekSynchronizer(
double time) = 0;
123 virtual double getSynchronizerPosition() = 0;
124 virtual void playSynchronizer() = 0;
125 virtual void stopSynchronizer() = 0;
126 virtual void setSyncCallback(
syncFunction function,
void* data) = 0;
127 virtual int isSynchronizerPlaying() = 0;
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
Defines all important macros and basic data structures for stream format descriptions.
The IDevice interface represents an output device for sound sources.
Definition IDevice.h:46
virtual std::shared_ptr< IHandle > play(std::shared_ptr< IReader > reader, bool keep=false)=0
Plays a sound source.
virtual void setVolume(float volume)=0
Sets the overall device volume.
virtual ~IDevice()
Destroys the device.
Definition IDevice.h:51
virtual DeviceSpecs getSpecs() const =0
Returns the specification of the device.
void(* syncFunction)(void *, int, float)
The syncFunction is called when a synchronization event happens.
Definition IDevice.h:120
virtual std::shared_ptr< IHandle > play(std::shared_ptr< ISound > sound, bool keep=false)=0
Plays a sound source.
virtual float getVolume() const =0
Retrieves the overall device volume.
virtual void lock()=0
Locks the device.
virtual void stopAll()=0
Stops all playing sounds.
virtual void unlock()=0
Unlocks the previously locked device.
The IHandle interface represents a playback handles of a specific device.
Definition IHandle.h:49
This class provides an interface for lockable objects.
Definition ILockable.h:34
This class represents a sound source as stream or as buffer which can be read for example by another ...
Definition IReader.h:35
This class represents a type of sound source and saves the necessary values for it.
Definition ISound.h:40
Specification of a sound device.
Definition Specification.h:129