#include <device_mixer.h>
Inheritance diagram for audiere::MixerStream:
Public Member Functions | |
MixerStream (MixerDevice *device, SampleSource *source, int rate) | |
~MixerStream () | |
void | play () |
void | stop () |
bool | isPlaying () |
void | reset () |
void | setRepeat (bool repeat) |
bool | getRepeat () |
void | setVolume (float volume) |
float | getVolume () |
void | setPan (float pan) |
float | getPan () |
void | setPitchShift (float shift) |
float | getPitchShift () |
bool | isSeekable () |
int | getLength () |
void | setPosition (int position) |
int | getPosition () |
Friends | |
class | MixerDevice |
Definition at line 52 of file device_mixer.h.
|
Definition at line 104 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Definition at line 122 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Implements audiere::OutputStream. Definition at line 224 of file device_mixer.cpp. |
|
Get current pan. Implements audiere::OutputStream. Definition at line 197 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Get current pitch shift. Defaults to 1.0. Implements audiere::OutputStream. Definition at line 211 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Returns the current position within the sample source.
Implements audiere::OutputStream. Definition at line 237 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Implements audiere::OutputStream. Definition at line 169 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Gets the current volume.
Implements audiere::OutputStream. Definition at line 183 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Implements audiere::OutputStream. Definition at line 148 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Implements audiere::OutputStream. Definition at line 218 of file device_mixer.cpp. |
|
Start playback of the output stream. If the stream is already playing, this does nothing. Implements audiere::OutputStream. Definition at line 129 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
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. Implements audiere::OutputStream. Definition at line 155 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Set current pan.
Implements audiere::OutputStream. Definition at line 190 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Set current pitch shift.
Implements audiere::OutputStream. Definition at line 204 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
Implements audiere::OutputStream. Definition at line 230 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Set whether the output stream should repeat.
Implements audiere::OutputStream. Definition at line 162 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Sets the stream's volume.
Implements audiere::OutputStream. Definition at line 176 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), and SYNCHRONIZED. |
|
Stop playback of the output stream. If the stream is already stopped, this does nothing. Implements audiere::OutputStream. Definition at line 136 of file device_mixer.cpp. References audiere::RefPtr< T >::get(), audiere::StopEvent::STOP_CALLED, and SYNCHRONIZED. |
|
Definition at line 89 of file device_mixer.h. |