Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
mixer.cpp File Reference

DirectSound driver opening and the mixer service thread. More...

#include "ix.h"
#include <dsound.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Macros

#define IX_MIXER_FILE   "D:\\rnd\\prj\\ix\\win95\\dsp\\mixer.cpp"

Functions

BOOL CALLBACK ix_dsp_open_driver (LPGUID guid, LPSTR description, LPSTR module, LPVOID context)
DWORD WINAPI ix_mixer_thread_proc (void *parameter)
int ix_mixer_service (void)

Variables

unsigned int dwSoundBufferSize
unsigned int dwMixerWriteOffset
HANDLE hIxPlaybackThread
HWND hPlaybackWindow
HANDLE hAudioWakeEvent
LPDIRECTSOUND pDspDevice
unsigned int dwDspFlags
LPDIRECTSOUNDBUFFER pMixerBuffer
unsigned int dwDspTick
LPDIRECTSOUNDBUFFER pDspPrimaryBuffer

Detailed Description

DirectSound driver opening and the mixer service thread.

Originally D:\rnd\prj\ix\win95\dsp\mixer.cpp, address range 445f60-44679f, recovered from the module's own assert __FILE__ anchors.

Definition in file mixer.cpp.

Macro Definition Documentation

◆ IX_MIXER_FILE

#define IX_MIXER_FILE   "D:\\rnd\\prj\\ix\\win95\\dsp\\mixer.cpp"

Definition at line 16 of file mixer.cpp.

Referenced by ix_mixer_service(), and ix_mixer_thread_proc().

Function Documentation

◆ ix_dsp_open_driver()

BOOL CALLBACK ix_dsp_open_driver ( LPGUID guid,
LPSTR description,
LPSTR module,
LPVOID context )

◆ ix_mixer_service()

◆ ix_mixer_thread_proc()

Variable Documentation

◆ dwDspFlags

◆ dwDspTick

unsigned int dwDspTick
extern

Definition at line 31 of file dsp.cpp.

Referenced by ix_dsp_get_tick(), and ix_mixer_service().

◆ dwMixerWriteOffset

unsigned int dwMixerWriteOffset
extern

Definition at line 24 of file dsp.cpp.

Referenced by ix_dsp_init(), and ix_mixer_service().

◆ dwSoundBufferSize

unsigned int dwSoundBufferSize
extern

Definition at line 26 of file dsp.cpp.

Referenced by ix_mixer_service(), and ix_mixer_thread_proc().

◆ hAudioWakeEvent

HANDLE hAudioWakeEvent
extern

Definition at line 23 of file dsp.cpp.

Referenced by ix_dsp_configure(), ix_dsp_init(), ix_dsp_shutdown(), and ix_mixer_thread_proc().

◆ hIxPlaybackThread

HANDLE hIxPlaybackThread
extern

Definition at line 21 of file dsp.cpp.

Referenced by ix_dsp_init(), and ix_dsp_shutdown().

◆ hPlaybackWindow

HWND hPlaybackWindow
extern

Definition at line 22 of file dsp.cpp.

Referenced by ix_dsp_configure(), and ix_dsp_open_driver().

◆ pDspDevice

LPDIRECTSOUND pDspDevice
extern

◆ pDspPrimaryBuffer

LPDIRECTSOUNDBUFFER pDspPrimaryBuffer
extern

Definition at line 32 of file dsp.cpp.

Referenced by ix_mixer_thread_proc().

◆ pMixerBuffer

LPDIRECTSOUNDBUFFER pMixerBuffer
extern

Definition at line 29 of file dsp.cpp.

Referenced by ix_mixer_service(), and ix_mixer_thread_proc().