69 virtual std::shared_ptr<IHandle>
play(std::shared_ptr<IReader> reader,
bool keep =
false)=0;
81 virtual std::shared_ptr<IHandle>
play(std::shared_ptr<ISound> sound,
bool keep =
false)=0;
96 virtual void lock()=0;
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition: Audaspace.h:116
This class represents a sound source as stream or as buffer which can be read for example by another ...
Definition: IReader.h:34
virtual void unlock()=0
Unlocks the previously locked device.
This class enables global synchronization of several audio applications if supported.
Definition: ISynchronizer.h:38
virtual void lock()=0
Locks the device.
Defines all important macros and basic data structures for stream format descriptions.
virtual ISynchronizer * getSynchronizer()=0
Retrieves the synchronizer for this device, which enables accurate synchronization between audio play...
virtual ~IDevice()
Destroys the device.
Definition: IDevice.h:52
Specification of a sound device.
Definition: Specification.h:119
This class represents a type of sound source and saves the necessary values for it.
Definition: ISound.h:39
virtual void stopAll()=0
Stops all playing sounds.
virtual void setVolume(float volume)=0
Sets the overall device volume.
virtual float getVolume() const =0
Retrieves the overall device volume.
virtual std::shared_ptr< IHandle > play(std::shared_ptr< IReader > reader, bool keep=false)=0
Plays a sound source.
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
The IHandle interface represents a playback handles of a specific device.
Definition: IHandle.h:48
virtual DeviceSpecs getSpecs() const =0
Returns the specification of the device.
This class provides an interface for lockable objects.
Definition: ILockable.h:33
The IDevice interface represents an output device for sound sources.
Definition: IDevice.h:46