#include <device_mixer.h>
Inheritance diagram for audiere::MixerStream:


Public Methods | |
| MixerStream (MixerDevice *device, SampleSource *source, int rate) | |
| ~MixerStream () | |
| void ADR_CALL | play () |
| void ADR_CALL | stop () |
| bool ADR_CALL | isPlaying () |
| void ADR_CALL | reset () |
| void ADR_CALL | setRepeat (bool repeat) |
| bool ADR_CALL | getRepeat () |
| void ADR_CALL | setVolume (float volume) |
| float ADR_CALL | getVolume () |
| void ADR_CALL | setPan (float pan) |
| float ADR_CALL | getPan () |
| void ADR_CALL | setPitchShift (float shift) |
| float ADR_CALL | getPitchShift () |
| bool ADR_CALL | isSeekable () |
| int ADR_CALL | getLength () |
| void ADR_CALL | setPosition (int position) |
| int ADR_CALL | getPosition () |
Friends | |
| class | MixerDevice |
|
||||||||||||||||
|
Definition at line 107 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), audiere::RefPtr< Resampler >::get(), and SYNCHRONIZED. |
|
|
Definition at line 126 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Implements audiere::OutputStream. Definition at line 223 of file device_mixer.cpp. |
|
|
Get current pan. Implements audiere::OutputStream. Definition at line 196 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Get current pitch shift. Defaults to 1.0. Implements audiere::OutputStream. Definition at line 210 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Returns the current position within the sample source.
Implements audiere::OutputStream. Definition at line 236 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Implements audiere::OutputStream. Definition at line 168 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Gets the current volume.
Implements audiere::OutputStream. Definition at line 182 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Implements audiere::OutputStream. Definition at line 147 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Implements audiere::OutputStream. Definition at line 217 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 133 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::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 154 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Set current pan.
Implements audiere::OutputStream. Definition at line 189 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Set current pitch shift.
Implements audiere::OutputStream. Definition at line 203 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::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 229 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Set whether the output stream should repeat.
Implements audiere::OutputStream. Definition at line 161 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Sets the stream's volume.
Implements audiere::OutputStream. Definition at line 175 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Stop playback of the output stream. If the stream is already stopped, this does nothing. Implements audiere::OutputStream. Definition at line 140 of file device_mixer.cpp. References audiere::RefPtr< MixerDevice >::get(), and SYNCHRONIZED. |
|
|
Definition at line 93 of file device_mixer.h. |
1.2.17