#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.
|
|
|
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Get current pan. Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Get current pitch shift. Defaults to 1.0. Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Returns the current position within the sample source.
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Gets the current volume.
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Start playback of the output stream. If the stream is already playing, this does nothing. Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
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. Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Set current pan.
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Set current pitch shift.
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Set whether the output stream should repeat.
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Sets the stream's volume.
Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |
|
Stop playback of the output stream. If the stream is already stopped, this does nothing. Implemented in audiere::DSOutputBuffer, audiere::DSOutputStream, audiere::MixerStream, and audiere::NullOutputStream. |