WASAPIOutputStream

Undocumented in source.

Constructors

this
this(IAudioClient backend, uint frameSize, uint bufferSize)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

audioThread
void audioThread()
Undocumented in source. Be warned that the author may not have intended to support it.
runAudioThread
int runAudioThread()

Runs the audio thread. This either means that it'll create a new low-level thread to feed the stream a steady amount of data, or use whatever backend the OS has.

suspendAudioThread
int suspendAudioThread()

Suspends the audio thread by allowing it to escape normally and close things safely, or suspending it on the backend.

Variables

backend
IAudioClient backend;
Undocumented in source.
buffer
IAudioRenderClient buffer;
Undocumented in source.
bufferSize
uint bufferSize;
Undocumented in source.
eventHandle
HANDLE eventHandle;
Undocumented in source.
frameSize
uint frameSize;
Undocumented in source.
werrCode
HRESULT werrCode;
Undocumented in source.

Inherited Members

From OutputStream

_threadID
ThreadID _threadID;

The ID of the audio thread if there's any.

errCode
int errCode;

The last error code that was encountered, or 0 if none.

statusCode
uint statusCode;

Internal state flags.

StatusFlags
enum StatusFlags
Undocumented in source.
threadID
ThreadID threadID [@property getter]

Returns the thread ID of the stream thread. Warning: It is not advised to join this thread.

callback_buffer
void delegate(ubyte[] buffer) callback_buffer;

Called periodically request more data to device output. Target must not call any functions that either suspend the thread, or would impact real-time performance (disk operations, etc).

callback_onBufferUnderflow
void delegate() callback_onBufferUnderflow;

Called when a buffer underflow error have occured. (Optional)

runAudioThread
int runAudioThread()

Runs the audio thread. This either means that it'll create a new low-level thread to feed the stream a steady amount of data, or use whatever the backend on the OS has.

suspendAudioThread
int suspendAudioThread()

Suspends the audio thread by allowing it to escape normally and close things safely, or suspending it on the backend.

Meta