|
Wing Commander II
Reconstructed Win32 source (1996)
|
DirectSound initialization, device configuration and buffers. More...
Go to the source code of this file.
Macros | |
| #define | IX_DSP_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dsp.cpp" |
| #define | IX_MALLOC_HOOK malloc |
Functions | |
| void *__cdecl * | g_pIxMalloc (unsigned int) |
| void (__cdecl *g_pIxFree)(void *) | |
| int | ix_dsp_init (void) |
| void | ix_dsp_shutdown (void) |
| void | ix_dsp_configure (int option, void *value) |
| BOOL CALLBACK | ix_dsp_open_driver (LPGUID guid, LPSTR description, LPSTR module, LPVOID context) |
| unsigned int | ix_dsp_get_tick (void) |
| unsigned int | ix_dsp_get_flags (void) |
| void | ix_dsp_set_config_bit1 (int enabled) |
| void | ix_dsp_set_config_bit3 (int enabled) |
| int | ix_dsp_get_voice_count (void) |
| void | ix_dsp_set_voice_count (int voiceCount) |
| int | ix_dsp_get_stream_count (void) |
| void | ix_dsp_set_stream_count (int streamCount) |
| unsigned short | ix_dsp_get_master_volume (void) |
| void | ix_dsp_set_master_volume (unsigned short volume) |
| void | ix_dsp_build_pan_tables (void) |
| const char * | ix_dsp_result_to_text (int result) |
| void * | ix_dsp_alloc (unsigned int bytes) |
| void * | ix_dsp_copy (void *destination, const void *source, unsigned int bytes) |
| void | ix_dsp_free (void *memory) |
Variables | |
| HANDLE | g_hMixerTask |
| HWND | g_4_hDspWnd |
| HANDLE | g_2_hMixerRouseEvent |
| unsigned int | g_3_dwMixWriteOffset |
| LPDIRECTSOUND | g_1_pDirectSound |
| unsigned int | g_dwMixerScratchSize |
| unsigned int | g_5_dwSoundOptions |
| DWORD | g_1_dwMixWorkerId |
| LPDIRECTSOUNDBUFFER | g_pMixerBuffer |
| unsigned int | g_6_dwDsoundTick |
| LPDIRECTSOUNDBUFFER | g_1_pPrimarySoundBuffer |
| short | g_3_anPanTable [512] |
| int | g_nVoicesReserved |
| unsigned short | g_nMasterVolume = 0xffff |
DirectSound initialization, device configuration and buffers.
Definition in file dsp.cpp.
| #define IX_DSP_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dsp.cpp" |
Definition at line 16 of file dsp.cpp.
Referenced by ix_dsp_init(), ix_dsp_set_stream_count(), and ix_dsp_set_voice_count().
| #define IX_MALLOC_HOOK malloc |
Definition at line 34 of file dsp.cpp.
Referenced by g_pIxMalloc().
| void *__cdecl * g_pIxMalloc | ( | unsigned int | ) |
References g_pIxMalloc(), and IX_MALLOC_HOOK.
Referenced by g_pIxMalloc(), ix_dsp_alloc(), ix_dsp_configure(), ix_streamer_open_file(), ix_streamer_open_stream_file(), ix_system_new_sample(), and ix_system_new_sound().
| void * ix_dsp_alloc | ( | unsigned int | bytes | ) |
Definition at line 305 of file dsp.cpp.
References g_pIxMalloc(), and ix_dsp_alloc().
Referenced by ix_dsp_alloc(), IxSample::ix_sample_load_aiff(), IxSample::ix_sample_load_raw(), and IxSample::ix_sample_load_wav().
Definition at line 236 of file dsp.cpp.
References g_3_anPanTable, and ix_dsp_build_pan_tables().
Referenced by ix_dsp_build_pan_tables(), and ix_dsp_init().
Definition at line 82 of file dsp.cpp.
References g_1_pDirectSound, g_2_hMixerRouseEvent, g_4_hDspWnd, g_5_dwSoundOptions, g_pIxMalloc(), ix_dsp_configure(), and void().
Referenced by ix_dsp_configure(), ix_streamer_configure(), ix_streamer_open_stream_file(), and ix_system_configure().
Definition at line 312 of file dsp.cpp.
References ix_dsp_copy().
Referenced by ix_dsp_copy(), IxSample::ix_sample_load_aiff(), IxSample::ix_sample_load_raw(), and IxSample::ix_sample_load_wav().
Definition at line 318 of file dsp.cpp.
References ix_dsp_free().
Referenced by ix_dsp_free(), and IxSample::ix_sample_destruct().
| unsigned int ix_dsp_get_flags | ( | void | ) |
Definition at line 145 of file dsp.cpp.
References g_5_dwSoundOptions, and ix_dsp_get_flags().
Referenced by ix_dsp_get_flags().
| unsigned short ix_dsp_get_master_volume | ( | void | ) |
Definition at line 213 of file dsp.cpp.
References g_nMasterVolume, and ix_dsp_get_master_volume().
Referenced by ix_dsp_get_master_volume(), and ix_system_get_master_volume().
| int ix_dsp_get_stream_count | ( | void | ) |
Definition at line 191 of file dsp.cpp.
References g_3_nStreamCount, and ix_dsp_get_stream_count().
Referenced by ix_dsp_get_stream_count().
| unsigned int ix_dsp_get_tick | ( | void | ) |
Definition at line 139 of file dsp.cpp.
References g_6_dwDsoundTick, and ix_dsp_get_tick().
Referenced by ix_dsp_get_tick(), ix_sound_start(), ix_system_assign_voice(), and ix_system_service_sounds().
| int ix_dsp_get_voice_count | ( | void | ) |
Definition at line 169 of file dsp.cpp.
References g_nVoiceCapacity, and ix_dsp_get_voice_count().
Referenced by ix_dsp_get_voice_count(), ix_system_init(), and ix_system_set_voice_count().
| int ix_dsp_init | ( | void | ) |
Definition at line 40 of file dsp.cpp.
References g_1_dwMixWorkerId, g_2_hMixerRouseEvent, g_3_dwMixWriteOffset, g_3_nStreamCount, g_5_dwSoundOptions, g_7_csMixer, g_hMixerTask, g_nVoiceCapacity, ix_dsp_build_pan_tables(), IX_DSP_FILE, ix_dsp_init(), ix_log_printf(), and ix_mixer_thread_proc().
Referenced by ix_dsp_init(), ix_streamer_init(), and ix_system_init().
| BOOL CALLBACK ix_dsp_open_driver | ( | LPGUID | guid, |
| LPSTR | description, | ||
| LPSTR | module, | ||
| LPVOID | context ) |
Definition at line 111 of file dsp.cpp.
References g_1_pDirectSound, g_4_hDspWnd, g_5_dwSoundOptions, ix_dsp_open_driver(), and ix_log_printf().
Referenced by ix_dsp_open_driver(), and ix_mixer_thread_proc().
| const char * ix_dsp_result_to_text | ( | int | result | ) |
Definition at line 270 of file dsp.cpp.
References ix_dsp_result_to_text().
Referenced by ix_dsp_result_to_text(), ix_mixer_service(), and ix_mixer_thread_proc().
| void ix_dsp_set_config_bit1 | ( | int | enabled | ) |
Definition at line 151 of file dsp.cpp.
References g_5_dwSoundOptions, and ix_dsp_set_config_bit1().
Referenced by ix_dsp_set_config_bit1().
| void ix_dsp_set_config_bit3 | ( | int | enabled | ) |
Definition at line 160 of file dsp.cpp.
References g_5_dwSoundOptions, and ix_dsp_set_config_bit3().
Referenced by ix_dsp_set_config_bit3().
| void ix_dsp_set_master_volume | ( | unsigned short | volume | ) |
Definition at line 219 of file dsp.cpp.
References g_2_voices, g_nMasterVolume, g_nVoiceCapacity, ix_dsp_set_master_volume(), ix_dspv_recalc_mix(), and IX_VOICE_ACTIVE.
Referenced by ix_dsp_set_master_volume(), and ix_system_set_master_volume().
| void ix_dsp_set_stream_count | ( | int | streamCount | ) |
Definition at line 197 of file dsp.cpp.
References g_3_nStreamCount, g_nStreamsTaken, g_nVoicesReserved, IX_DSP_FILE, ix_dsp_set_stream_count(), and ix_log_printf().
Referenced by ix_dsp_set_stream_count().
| void ix_dsp_set_voice_count | ( | int | voiceCount | ) |
Definition at line 175 of file dsp.cpp.
References g_nStreamsTaken, g_nVoiceCapacity, g_nVoicesReserved, IX_DSP_FILE, ix_dsp_set_voice_count(), and ix_log_printf().
Referenced by ix_dsp_set_voice_count(), and ix_system_set_voice_count().
Definition at line 63 of file dsp.cpp.
References g_1_pDirectSound, g_2_hMixerRouseEvent, g_5_dwSoundOptions, g_7_csMixer, g_hMixerTask, and ix_dsp_shutdown().
Referenced by ix_dsp_shutdown(), ix_streamer_destroy(), and ix_system_shutdown().
| void | ( | __cdecl * | g_pIxFree | ) |
References void().
Referenced by AdvanceViewportWipe(), CaptureSpriteBackground(), ConfigureDefaultSpacePalette(), decrement_lock_time(), DispatchCutsceneSpriteHandler(), DrawCutsceneCockpitOverlay(), DrawNavCrossMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), EMStartUp(), FindCutsceneSoundEffect(), FinishViewportWipe(), FlushPendingInputPresses(), FlushSoundEffectsAndLog(), FrameTimerCallback(), general_zig(), GetAvailableFarMemoryByType(), GetLargestFreeMemoryBlockByType(), GetShutdownErrorCode(), GetStartupErrorCode(), GetTransformedShapeBounds(), house_keep(), InitializeViewportWipe(), ix_dsp_configure(), ix_streamer_thread_proc(), JoystickEdgeHook(), LoadCutsceneCockpitOverlay(), LoadGraphicsDriver(), LoadInputCursorShape(), LoadOriginFxDrivers(), Mburnout(), Mfish_hook(), onboard_explosion(), perform_maneuver(), PlayCockpitSelectionSfx(), QueueInputEvent(), RasterLineHook(), RefreshCampaignChalkboardScreen(), ReleaseCutsceneSoundEffects(), RestoreSpriteBackground(), RunTitleScreen(), ServiceInputDevices(), SetMusicTickRateHook(), ShowVictoryScreen(), StartupHook(), TheEndFireWorks(), void(), WaitForInputKey(), and DebugOverlayConsole::~DebugOverlayConsole().
| DWORD g_1_dwMixWorkerId |
Definition at line 25 of file dsp.cpp.
Referenced by ix_dsp_init().
| LPDIRECTSOUND g_1_pDirectSound |
Definition at line 22 of file dsp.cpp.
Referenced by ix_dsp_configure(), ix_dsp_open_driver(), ix_dsp_shutdown(), and ix_mixer_thread_proc().
| LPDIRECTSOUNDBUFFER g_1_pPrimarySoundBuffer |
Definition at line 28 of file dsp.cpp.
Referenced by ix_mixer_thread_proc().
| HANDLE g_2_hMixerRouseEvent |
Definition at line 20 of file dsp.cpp.
Referenced by ix_dsp_configure(), ix_dsp_init(), ix_dsp_shutdown(), and ix_mixer_thread_proc().
| short g_3_anPanTable[512] |
Definition at line 29 of file dsp.cpp.
Referenced by ix_dsp_build_pan_tables(), ix_dspv_recalc_mix(), and void().
| unsigned int g_3_dwMixWriteOffset |
Definition at line 21 of file dsp.cpp.
Referenced by ix_dsp_init(), and ix_mixer_service().
| HWND g_4_hDspWnd |
Definition at line 19 of file dsp.cpp.
Referenced by ix_dsp_configure(), and ix_dsp_open_driver().
| unsigned int g_5_dwSoundOptions |
Definition at line 24 of file dsp.cpp.
Referenced by ix_dsp_configure(), ix_dsp_get_flags(), ix_dsp_init(), ix_dsp_open_driver(), ix_dsp_set_config_bit1(), ix_dsp_set_config_bit3(), ix_dsp_shutdown(), ix_mixer_service(), and ix_mixer_thread_proc().
| unsigned int g_6_dwDsoundTick |
Definition at line 27 of file dsp.cpp.
Referenced by ix_dsp_get_tick(), and ix_mixer_service().
| unsigned int g_dwMixerScratchSize |
Definition at line 23 of file dsp.cpp.
Referenced by ix_mixer_service(), and ix_mixer_thread_proc().
| HANDLE g_hMixerTask |
Definition at line 18 of file dsp.cpp.
Referenced by ix_dsp_init(), and ix_dsp_shutdown().
| unsigned short g_nMasterVolume = 0xffff |
Definition at line 35 of file dsp.cpp.
Referenced by ix_dsp_get_master_volume(), ix_dsp_set_master_volume(), ix_dspv_recalc_mix(), ix_mixer_thread_proc(), and void().
|
extern |
Definition at line 249 of file dspv.cpp.
Referenced by ix_dsp_set_stream_count(), and ix_dsp_set_voice_count().
| LPDIRECTSOUNDBUFFER g_pMixerBuffer |
Definition at line 26 of file dsp.cpp.
Referenced by ix_mixer_service(), and ix_mixer_thread_proc().