#include <audiere.h>
Inheritance diagram for audiere::OutputStream:
Public Member Functions | |
virtual void | play ()=0 |
virtual void | stop ()=0 |
virtual bool | isPlaying ()=0 |
virtual void | reset ()=0 |
virtual void | setRepeat (bool repeat)=0 |
virtual bool | getRepeat ()=0 |
virtual void | setVolume (float volume)=0 |
virtual float | getVolume ()=0 |
virtual void | setPan (float pan)=0 |
virtual float | getPan ()=0 |
virtual void | setPitchShift (float shift)=0 |
virtual float | getPitchShift ()=0 |
virtual bool | isSeekable ()=0 |
virtual int | getLength ()=0 |
virtual void | setPosition (int position)=0 |
virtual int | getPosition ()=0 |
Protected Member Functions | |
~OutputStream () |
Each output stream can be independently played and stopped. They also each have a volume from 0.0 (silence) to 1.0 (maximum volume).
Definition at line 478 of file audiere.h.
|
|
|
|
|
Get current pan. |
|
Get current pitch shift. Defaults to 1.0. |
|
Returns the current position within the sample source.
|
|
|
|
Gets the current volume.
|
|
|
|
|
|
Start playback of the output stream. If the stream is already playing, this does nothing. |
|
Reset the sample source or buffer to the beginning. On seekable streams, this operation is equivalent to setPosition(0). On some output streams, this operation can be moderately slow, as up to several seconds of PCM buffer must be refilled. |
|
Set current pan.
|
|
Set current pitch shift.
|
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
|
|
Set whether the output stream should repeat.
|
|
Sets the stream's volume.
|
|
Stop playback of the output stream. If the stream is already stopped, this does nothing. |