1#ifndef COASTLINE_EAR_DIRECTSOUNDSTATE_H
2#define COASTLINE_EAR_DIRECTSOUNDSTATE_H
4#if TGR_PLATFORM == TGR_PLATFORM_WIN
23#if TGR_PLATFORM == TGR_PLATFORM_WIN
56#if TGR_PLATFORM == TGR_PLATFORM_WIN
Device buffer reference and cached byte cursors for Windows DirectSound or the SDL mixer.
Definition directsoundstate.h:21
DWORD GetPlayCursor() const
Definition directsoundstate.h:46
IDirectSoundBuffer Buffer
Windows device buffer type.
Definition directsoundstate.h:25
Buffer * GetBuffer() const
Definition directsoundstate.h:38
void ClearBuffer()
Clear the buffer reference without stopping or releasing the buffer.
Definition directsoundstate.h:42
void Initialize()
Reset the buffer pointer and both cached byte cursors without releasing prior resources.
HRESULT CreateBuffer(IDirectSound *device, _DSBUFFERDESC *description)
Create a Windows buffer and store the returned reference without releasing a prior buffer.
void SetPlayCursor(DWORD cursor)
Replace the cached cursor without seeking the device.
Definition directsoundstate.h:53
void UpdateCursors()
Query both cached byte cursors from a non-null device buffer.
A buffer of samples the mixer plays, as a secondary buffer of DirectSound plays in the original.
Definition sdlmixer.h:18
The integer and floating-point types of the console, for headers shared with Windows.
WAVEFORMATEX EarWaveFormat
Definition wavechunks.h:23