#include <device_ds_stream.h>
Inheritance diagram for audiere::DSOutputStream:
Public Member Functions | |
DSOutputStream (DSAudioDevice *device, IDirectSoundBuffer *buffer, int buffer_length, SampleSource *source) | |
~DSOutputStream () | |
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 | DSAudioDevice |
Definition at line 17 of file device_ds_stream.h.
|
Definition at line 8 of file device_ds_stream.cpp. References ADR_GUARD, audiere::GetFrameSize(), setPan(), and setVolume(). |
|
Definition at line 46 of file device_ds_stream.cpp. References ADR_GUARD. |
|
Implements audiere::OutputStream. Definition at line 151 of file device_ds_stream.cpp. References SYNCHRONIZED. |
|
Get current pan. Implements audiere::OutputStream. Definition at line 124 of file device_ds_stream.cpp. |
|
Get current pitch shift. Defaults to 1.0. Implements audiere::OutputStream. Definition at line 136 of file device_ds_stream.cpp. |
|
Returns the current position within the sample source.
Implements audiere::OutputStream. Definition at line 185 of file device_ds_stream.cpp. References SYNCHRONIZED. |
|
Implements audiere::OutputStream. Definition at line 97 of file device_ds_stream.cpp. References SYNCHRONIZED. |
|
Gets the current volume.
Implements audiere::OutputStream. Definition at line 111 of file device_ds_stream.cpp. |
|
Implements audiere::OutputStream. Definition at line 73 of file device_ds_stream.cpp. Referenced by setPosition(), and setRepeat(). |
|
Implements audiere::OutputStream. Definition at line 144 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 58 of file device_ds_stream.cpp. References ADR_GUARD. Referenced by 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 79 of file device_ds_stream.cpp. References ADR_GUARD, and SYNCHRONIZED. |
|
Set current pan.
Implements audiere::OutputStream. Definition at line 117 of file device_ds_stream.cpp. References audiere::DSAudioDevice::Pan_AudiereToDirectSound(). Referenced by DSOutputStream(). |
|
Set current pitch shift.
Implements audiere::OutputStream. Definition at line 130 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 158 of file device_ds_stream.cpp. References isPlaying(), play(), and SYNCHRONIZED. |
|
Set whether the output stream should repeat.
Implements audiere::OutputStream. Definition at line 87 of file device_ds_stream.cpp. References isPlaying(), and SYNCHRONIZED. |
|
Sets the stream's volume.
Implements audiere::OutputStream. Definition at line 104 of file device_ds_stream.cpp. References audiere::DSAudioDevice::Volume_AudiereToDirectSound(). Referenced by DSOutputStream(). |
|
Stop playback of the output stream. If the stream is already stopped, this does nothing. Implements audiere::OutputStream. Definition at line 66 of file device_ds_stream.cpp. References ADR_GUARD. |
|
Definition at line 77 of file device_ds_stream.h. |