#include <device_ds_stream.h>
Inheritance diagram for audiere::DSOutputStream:


Public Methods | |
| DSOutputStream (DSAudioDevice *device, IDirectSoundBuffer *buffer, int buffer_length, SampleSource *source) | |
| ~DSOutputStream () | |
| 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 | DSAudioDevice |
|
||||||||||||||||||||
|
Definition at line 8 of file device_ds_stream.cpp. References ADR_GUARD, audiere::SampleSource::getFormat(), audiere::GetSampleSize(), audiere::hidden::sample_format, audiere::SampleFormat, setPan(), and setVolume(). |
|
|
Definition at line 49 of file device_ds_stream.cpp. References ADR_GUARD. |
|
|
Implements audiere::OutputStream. Definition at line 173 of file device_ds_stream.cpp. References SYNCHRONIZED. |
|
|
Get current pan. Implements audiere::OutputStream. Definition at line 146 of file device_ds_stream.cpp. |
|
|
Get current pitch shift. Defaults to 1.0. Implements audiere::OutputStream. Definition at line 158 of file device_ds_stream.cpp. |
|
|
Returns the current position within the sample source.
Implements audiere::OutputStream. Definition at line 208 of file device_ds_stream.cpp. References SYNCHRONIZED. |
|
|
Implements audiere::OutputStream. Definition at line 119 of file device_ds_stream.cpp. References SYNCHRONIZED. |
|
|
Gets the current volume.
Implements audiere::OutputStream. Definition at line 133 of file device_ds_stream.cpp. |
|
|
Implements audiere::OutputStream. Definition at line 77 of file device_ds_stream.cpp. Referenced by reset(), and setPosition(). |
|
|
Implements audiere::OutputStream. Definition at line 166 of file device_ds_stream.cpp. References SYNCHRONIZED. |
|
|
Start playback of the output stream. If the stream is already playing, this does nothing. Implements audiere::OutputStream. Definition at line 61 of file device_ds_stream.cpp. References ADR_GUARD. Referenced by reset(), and setPosition(). |
|
|
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 83 of file device_ds_stream.cpp. References ADR_GUARD, isPlaying(), play(), stop(), and SYNCHRONIZED. |
|
|
Set current pan.
Implements audiere::OutputStream. Definition at line 139 of file device_ds_stream.cpp. Referenced by DSOutputStream(). |
|
|
Set current pitch shift.
Implements audiere::OutputStream. Definition at line 152 of file device_ds_stream.cpp. |
|
|
Sets the current position within the sample source. If the stream is not seekable, this method does nothing.
Implements audiere::OutputStream. Definition at line 180 of file device_ds_stream.cpp. References isPlaying(), play(), stop(), and SYNCHRONIZED. |
|
|
Set whether the output stream should repeat.
Implements audiere::OutputStream. Definition at line 112 of file device_ds_stream.cpp. References SYNCHRONIZED. |
|
|
Sets the stream's volume.
Implements audiere::OutputStream. Definition at line 126 of file device_ds_stream.cpp. Referenced by DSOutputStream(). |
|
|
Stop playback of the output stream. If the stream is already stopped, this does nothing. Implements audiere::OutputStream. Definition at line 69 of file device_ds_stream.cpp. References ADR_GUARD. Referenced by reset(), and setPosition(). |
|
|
Definition at line 75 of file device_ds_stream.h. |
1.2.17