43 NULLHandle(
const NULLHandle&) =
delete;
44 NULLHandle& operator=(
const NULLHandle&) =
delete;
50 virtual ~NULLHandle() {}
52 virtual bool resume();
54 virtual bool getKeep();
55 virtual bool setKeep(
bool keep);
56 virtual bool seek(
float position);
57 virtual float getPosition();
58 virtual Status getStatus();
59 virtual float getVolume();
60 virtual bool setVolume(
float volume);
61 virtual float getPitch();
62 virtual bool setPitch(
float pitch);
63 virtual int getLoopCount();
64 virtual bool setLoopCount(
int count);
65 virtual bool setStopCallback(
stopCallback callback = 0,
void* data = 0);
81 virtual std::shared_ptr<IHandle> play(std::shared_ptr<IReader> reader,
bool keep =
false);
82 virtual std::shared_ptr<IHandle> play(std::shared_ptr<ISound> sound,
bool keep =
false);
83 virtual void stopAll();
85 virtual void unlock();
86 virtual float getVolume()
const;
87 virtual void setVolume(
float volume);
93 static void registerPlugin();
#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
This class enables global synchronization of several audio applications if supported.
Definition: ISynchronizer.h:38
This device plays nothing.
Definition: NULLDevice.h:36
#define AUD_API
Used for exporting symbols in the shared library.
Definition: Audaspace.h:93
void(* stopCallback)(void *)
The stopCallback is called when a handle reaches the end of the stream and thus gets stopped...
Definition: IHandle.h:42
Specification of a sound device.
Definition: Specification.h:119
Defines the IHandle interface as well as possible states of the handle.
#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
The IDevice interface represents an output device for sound sources.
Definition: IDevice.h:46
#define AUD_LOCAL
Used for hiding symbols from export in the shared library.
Definition: Audaspace.h:80
Status
Status of a playback handle.
Definition: IHandle.h:30