62 virtual bool pause()=0;
70 virtual bool resume()=0;
79 virtual bool stop()=0;
88 virtual bool getKeep()=0;
98 virtual bool setKeep(
bool keep)=0;
108 virtual bool seek(
double position)=0;
115 virtual double getPosition()=0;
128 virtual Status getStatus()=0;
134 virtual float getVolume()=0;
143 virtual bool setVolume(
float volume)=0;
149 virtual float getPitch()=0;
158 virtual bool setPitch(
float pitch)=0;
165 virtual int getLoopCount()=0;
175 virtual bool setLoopCount(
int count)=0;
186 virtual bool setStopCallback(
stopCallback callback = 0,
void* data = 0)=0;
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition: Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition: Audaspace.h:93
virtual ~IHandle()
Destroys the handle.
Definition: IHandle.h:54
void(* stopCallback)(void *)
The stopCallback is called when a handle reaches the end of the stream and thus gets stopped...
Definition: IHandle.h:42
Sound is playing.
Definition: IHandle.h:34
Sound is being paused.
Definition: IHandle.h:35
#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 main header file of the library defining the namespace and basic data types.
Invalid handle. Maybe due to stopping.
Definition: IHandle.h:33
Status
Status of a playback handle.
Definition: IHandle.h:30