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

Software-mixer scheduling and buffer management. 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

HANDLE g_hMixerTask
HWND g_4_hDspWnd
HANDLE g_2_hMixerRouseEvent
unsigned int g_dwMixerScratchSize
unsigned int g_3_dwMixWriteOffset
LPDIRECTSOUND g_1_pDirectSound
unsigned int g_5_dwSoundOptions
LPDIRECTSOUNDBUFFER g_1_pPrimarySoundBuffer
unsigned int g_6_dwDsoundTick
LPDIRECTSOUNDBUFFER g_pMixerBuffer

Detailed Description

Software-mixer scheduling and buffer management.

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 18 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

◆ g_1_pDirectSound

LPDIRECTSOUND g_1_pDirectSound
extern

◆ g_1_pPrimarySoundBuffer

LPDIRECTSOUNDBUFFER g_1_pPrimarySoundBuffer
extern

Definition at line 28 of file dsp.cpp.

Referenced by ix_mixer_thread_proc().

◆ g_2_hMixerRouseEvent

HANDLE g_2_hMixerRouseEvent
extern

Definition at line 20 of file dsp.cpp.

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

◆ g_3_dwMixWriteOffset

unsigned int g_3_dwMixWriteOffset
extern

Definition at line 21 of file dsp.cpp.

Referenced by ix_dsp_init(), and ix_mixer_service().

◆ g_4_hDspWnd

HWND g_4_hDspWnd
extern

Definition at line 19 of file dsp.cpp.

Referenced by ix_dsp_configure(), and ix_dsp_open_driver().

◆ g_5_dwSoundOptions

◆ g_6_dwDsoundTick

unsigned int g_6_dwDsoundTick
extern

Definition at line 27 of file dsp.cpp.

Referenced by ix_dsp_get_tick(), and ix_mixer_service().

◆ g_dwMixerScratchSize

unsigned int g_dwMixerScratchSize
extern

Definition at line 23 of file dsp.cpp.

Referenced by ix_mixer_service(), and ix_mixer_thread_proc().

◆ g_hMixerTask

HANDLE g_hMixerTask
extern

Definition at line 18 of file dsp.cpp.

Referenced by ix_dsp_init(), and ix_dsp_shutdown().

◆ g_pMixerBuffer

LPDIRECTSOUNDBUFFER g_pMixerBuffer
extern

Definition at line 26 of file dsp.cpp.

Referenced by ix_mixer_service(), and ix_mixer_thread_proc().