#include <device_ds_buffer.h>
Inheritance diagram for audiere::DSOutputBuffer:
Public Member Functions | |
DSOutputBuffer (DSAudioDevice *device, IDirectSoundBuffer *buffer, int length, int frame_size) | |
~DSOutputBuffer () | |
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 15 of file device_ds_buffer.h.
|
Definition at line 7 of file device_ds_buffer.cpp. |
|
Definition at line 48 of file device_ds_buffer.cpp. References ADR_GUARD. |
|
Implements audiere::OutputStream. Definition at line 149 of file device_ds_buffer.cpp. |
|
Get current pan. Implements audiere::OutputStream. Definition at line 123 of file device_ds_buffer.cpp. |
|
Get current pitch shift. Defaults to 1.0. Implements audiere::OutputStream. Definition at line 135 of file device_ds_buffer.cpp. |
|
Returns the current position within the sample source.
Implements audiere::OutputStream. Definition at line 161 of file device_ds_buffer.cpp. References play(). |
|
Implements audiere::OutputStream. Definition at line 97 of file device_ds_buffer.cpp. |
|
Gets the current volume.
Implements audiere::OutputStream. Definition at line 110 of file device_ds_buffer.cpp. |
|
Implements audiere::OutputStream. Definition at line 73 of file device_ds_buffer.cpp. Referenced by setRepeat(). |
|
Implements audiere::OutputStream. Definition at line 143 of file device_ds_buffer.cpp. |
|
Start playback of the output stream. If the stream is already playing, this does nothing. Implements audiere::OutputStream. Definition at line 60 of file device_ds_buffer.cpp. Referenced by getPosition(), and setRepeat(). |
|
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 81 of file device_ds_buffer.cpp. References setPosition(). |
|
Set current pan.
Implements audiere::OutputStream. Definition at line 116 of file device_ds_buffer.cpp. References audiere::DSAudioDevice::Pan_AudiereToDirectSound(). |
|
Set current pitch shift.
Implements audiere::OutputStream. Definition at line 129 of file device_ds_buffer.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 155 of file device_ds_buffer.cpp. Referenced by reset(). |
|
Set whether the output stream should repeat.
Implements audiere::OutputStream. Definition at line 87 of file device_ds_buffer.cpp. References isPlaying(), and play(). |
|
Sets the stream's volume.
Implements audiere::OutputStream. Definition at line 103 of file device_ds_buffer.cpp. References audiere::DSAudioDevice::Volume_AudiereToDirectSound(). |
|
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_buffer.cpp. References audiere::StopEvent::STOP_CALLED. |
|
Definition at line 62 of file device_ds_buffer.h. |