#include <audiooutputdx.h>

Definition at line 17 of file audiooutputdx.h.
Public Member Functions | |
| AudioOutputDX (QString laudio_main_device, QString laudio_passthru_device, int laudio_bits, int laudio_channels, int laudio_samplerate, AudioOutputSource lsource, bool lset_initial_vol, bool laudio_passthru) | |
| virtual | ~AudioOutputDX () |
| bool | OpenDevice (void) |
| BEGIN HACK HACK HACK HACK These need to actually be implemented! | |
| void | CloseDevice (void) |
| void | WriteAudio (unsigned char *, int) |
| virtual int | getSpaceOnSoundcard (void) |
| virtual int | getBufferedOnSoundcard (void) |
| virtual void | Reset (void) |
| END HACK HACK HACK HACK. | |
| virtual void | Reconfigure (int audio_bits, int audio_channels, int audio_samplerate, bool audio_passthru) |
| virtual void | SetBlocking (bool blocking) |
| virtual bool | AddSamples (char *buffer, int samples, long long timecode) |
| virtual bool | AddSamples (char *buffers[], int samples, long long timecode) |
| virtual void | SetEffDsp (int dsprate) |
| virtual void | SetTimecode (long long timecode) |
| virtual bool | GetPause (void) |
| virtual void | Pause (bool paused) |
| virtual void | Drain (void) |
| virtual int | GetAudiotime (void) |
| virtual int | GetVolumeChannel (int channel) |
| virtual void | SetVolumeChannel (int channel, int volume) |
Private Member Functions | |
| int | InitDirectSound () |
| int | CreateDSBuffer (int audio_bits, int audio_channels, int audio_samplerate, bool b_probe) |
| void | DestroyDSBuffer () |
| int | FillBuffer (int frames, char *buffer) |
Private Attributes | |
| HINSTANCE | dsound_dll |
| LPDIRECTSOUND | dsobject |
| LPDIRECTSOUNDBUFFER | dsbuffer |
| LPDIRECTSOUNDNOTIFY | dsnotify |
| DSBPOSITIONNOTIFY | notif [4] |
| DWORD | write_cursor |
| DWORD | buffer_size |
| bool | blocking |
| bool | awaiting_data |
| int | effdsp |
| int | audio_bytes_per_sample |
| int | audio_bits |
| int | audio_channels |
| int | audbuf_timecode |
| timecode of audio most recently placed into buffer | |
| bool | can_hw_pause |
| bool | paused |
| AudioOutputDX::AudioOutputDX | ( | QString | laudio_main_device, | |
| QString | laudio_passthru_device, | |||
| int | laudio_bits, | |||
| int | laudio_channels, | |||
| int | laudio_samplerate, | |||
| AudioOutputSource | lsource, | |||
| bool | lset_initial_vol, | |||
| bool | laudio_passthru | |||
| ) |
Definition at line 98 of file audiooutputdx.cpp.
| AudioOutputDX::~AudioOutputDX | ( | ) | [virtual] |
Definition at line 152 of file audiooutputdx.cpp.
| bool AudioOutputDX::OpenDevice | ( | void | ) | [inline, virtual] |
BEGIN HACK HACK HACK HACK These need to actually be implemented!
Implements AudioOutputBase.
Definition at line 29 of file audiooutputdx.h.
| void AudioOutputDX::CloseDevice | ( | void | ) | [inline, virtual] |
| void AudioOutputDX::WriteAudio | ( | unsigned char * | , | |
| int | ||||
| ) | [inline, virtual] |
| virtual int AudioOutputDX::getSpaceOnSoundcard | ( | void | ) | [inline, virtual] |
| virtual int AudioOutputDX::getBufferedOnSoundcard | ( | void | ) | [inline, virtual] |
| void AudioOutputDX::Reset | ( | void | ) | [virtual] |
END HACK HACK HACK HACK.
Reimplemented from AudioOutputBase.
Definition at line 165 of file audiooutputdx.cpp.
| void AudioOutputDX::Reconfigure | ( | int | audio_bits, | |
| int | audio_channels, | |||
| int | audio_samplerate, | |||
| bool | audio_passthru | |||
| ) | [virtual] |
| void AudioOutputDX::SetBlocking | ( | bool | blocking | ) | [virtual] |
| bool AudioOutputDX::AddSamples | ( | char * | buffer, | |
| int | samples, | |||
| long long | timecode | |||
| ) | [virtual] |
| bool AudioOutputDX::AddSamples | ( | char * | buffers[], | |
| int | samples, | |||
| long long | timecode | |||
| ) | [virtual] |
| void AudioOutputDX::SetEffDsp | ( | int | dsprate | ) | [virtual] |
| void AudioOutputDX::SetTimecode | ( | long long | timecode | ) | [virtual] |
| bool AudioOutputDX::GetPause | ( | void | ) | [virtual] |
| void AudioOutputDX::Pause | ( | bool | paused | ) | [virtual] |
| void AudioOutputDX::Drain | ( | void | ) | [virtual] |
| int AudioOutputDX::GetAudiotime | ( | void | ) | [virtual] |
| int AudioOutputDX::GetVolumeChannel | ( | int | channel | ) | [virtual] |
| void AudioOutputDX::SetVolumeChannel | ( | int | channel, | |
| int | volume | |||
| ) | [virtual] |
| int AudioOutputDX::InitDirectSound | ( | ) | [private] |
| int AudioOutputDX::CreateDSBuffer | ( | int | audio_bits, | |
| int | audio_channels, | |||
| int | audio_samplerate, | |||
| bool | b_probe | |||
| ) | [private] |
| void AudioOutputDX::DestroyDSBuffer | ( | ) | [private] |
Definition at line 578 of file audiooutputdx.cpp.
Referenced by CreateDSBuffer(), Reconfigure(), and ~AudioOutputDX().
| int AudioOutputDX::FillBuffer | ( | int | frames, | |
| char * | buffer | |||
| ) | [private] |
HINSTANCE AudioOutputDX::dsound_dll [private] |
Definition at line 61 of file audiooutputdx.h.
Referenced by InitDirectSound(), and ~AudioOutputDX().
LPDIRECTSOUND AudioOutputDX::dsobject [private] |
Definition at line 62 of file audiooutputdx.h.
Referenced by CreateDSBuffer(), InitDirectSound(), and ~AudioOutputDX().
LPDIRECTSOUNDBUFFER AudioOutputDX::dsbuffer [private] |
Definition at line 63 of file audiooutputdx.h.
Referenced by CreateDSBuffer(), DestroyDSBuffer(), FillBuffer(), GetAudiotime(), Pause(), Reconfigure(), Reset(), and SetEffDsp().
LPDIRECTSOUNDNOTIFY AudioOutputDX::dsnotify [private] |
Definition at line 66 of file audiooutputdx.h.
Referenced by CreateDSBuffer(), and DestroyDSBuffer().
DSBPOSITIONNOTIFY AudioOutputDX::notif[4] [private] |
Definition at line 67 of file audiooutputdx.h.
Referenced by CreateDSBuffer(), FillBuffer(), and InitDirectSound().
DWORD AudioOutputDX::write_cursor [private] |
Definition at line 69 of file audiooutputdx.h.
Referenced by CreateDSBuffer(), FillBuffer(), GetAudiotime(), and Reset().
DWORD AudioOutputDX::buffer_size [private] |
Definition at line 70 of file audiooutputdx.h.
Referenced by CreateDSBuffer(), FillBuffer(), and GetAudiotime().
bool AudioOutputDX::blocking [private] |
bool AudioOutputDX::awaiting_data [private] |
Definition at line 73 of file audiooutputdx.h.
Referenced by AddSamples(), FillBuffer(), Reconfigure(), and Reset().
int AudioOutputDX::effdsp [private] |
Reimplemented from AudioOutputBase.
Definition at line 75 of file audiooutputdx.h.
Referenced by AddSamples(), GetAudiotime(), Reconfigure(), and SetEffDsp().
int AudioOutputDX::audio_bytes_per_sample [private] |
Reimplemented from AudioOutputBase.
Definition at line 76 of file audiooutputdx.h.
Referenced by CreateDSBuffer(), FillBuffer(), and GetAudiotime().
int AudioOutputDX::audio_bits [private] |
int AudioOutputDX::audio_channels [private] |
int AudioOutputDX::audbuf_timecode [private] |
timecode of audio most recently placed into buffer
Reimplemented from AudioOutputBase.
Definition at line 79 of file audiooutputdx.h.
Referenced by AddSamples(), GetAudiotime(), Reset(), and SetTimecode().
bool AudioOutputDX::can_hw_pause [private] |
Definition at line 81 of file audiooutputdx.h.
bool AudioOutputDX::paused [private] |
Definition at line 82 of file audiooutputdx.h.
Referenced by FillBuffer(), GetPause(), Pause(), and Reconfigure().
1.5.5