|
Wing Commander
Reconstructed Win32 source (1996)
|
DirectSound device control and shared configuration. More...
Go to the source code of this file.
Macros | |
| #define | IX_DSP_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dsp.cpp" |
Functions | |
| void *__cdecl * | pIxMalloc (unsigned int) |
| void (__cdecl *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 | |
| unsigned short | nMasterVolume = 0xffff |
| HANDLE | hIxPlaybackThread |
| HWND | hPlaybackWindow |
| HANDLE | hAudioWakeEvent |
| unsigned int | dwMixerWriteOffset |
| LPDIRECTSOUND | pDspDevice |
| unsigned int | dwSoundBufferSize |
| unsigned int | dwDspFlags |
| DWORD | dwMixerThreadId |
| LPDIRECTSOUNDBUFFER | pMixerBuffer |
| short | asPanGains [512] |
| unsigned int | dwDspTick |
| LPDIRECTSOUNDBUFFER | pDspPrimaryBuffer |
DirectSound device control and shared configuration.
Originally D:\rnd\prj\ix\win95\dsp\dsp.cpp, address range 444910-44518f.
Definition in file dsp.cpp.
| #define IX_DSP_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dsp.cpp" |
Definition at line 15 of file dsp.cpp.
Referenced by ix_dsp_init(), ix_dsp_set_stream_count(), and ix_dsp_set_voice_count().
| void * ix_dsp_alloc | ( | unsigned int | bytes | ) |
Definition at line 298 of file dsp.cpp.
References ix_dsp_alloc(), and pIxMalloc().
Referenced by ix_dsp_alloc(), IxSample::ix_sample_load_aiff(), IxSample::ix_sample_load_raw(), and IxSample::ix_sample_load_wav().
Definition at line 229 of file dsp.cpp.
References asPanGains, and ix_dsp_build_pan_tables().
Referenced by ix_dsp_build_pan_tables(), and ix_dsp_init().
Definition at line 77 of file dsp.cpp.
References dwDspFlags, hAudioWakeEvent, hPlaybackWindow, ix_dsp_configure(), and pDspDevice.
Referenced by ix_dsp_configure(), ix_streamer_configure(), ix_streamer_open_stream_file(), and ix_system_configure().
Definition at line 305 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 311 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 140 of file dsp.cpp.
References dwDspFlags, and ix_dsp_get_flags().
Referenced by ix_dsp_get_flags().
| unsigned short ix_dsp_get_master_volume | ( | void | ) |
Definition at line 206 of file dsp.cpp.
References ix_dsp_get_master_volume(), and nMasterVolume.
Referenced by ix_dsp_get_master_volume(), and ix_system_get_master_volume().
| int ix_dsp_get_stream_count | ( | void | ) |
Definition at line 185 of file dsp.cpp.
References ix_dsp_get_stream_count(), and nStreamCount.
Referenced by ix_dsp_get_stream_count().
| unsigned int ix_dsp_get_tick | ( | void | ) |
Definition at line 134 of file dsp.cpp.
References dwDspTick, 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 164 of file dsp.cpp.
References ix_dsp_get_voice_count(), and nVoiceCount.
Referenced by ix_dsp_get_voice_count(), ix_system_init(), and ix_system_set_voice_count().
| int ix_dsp_init | ( | void | ) |
Definition at line 35 of file dsp.cpp.
References csMixer, dwDspFlags, dwMixerThreadId, dwMixerWriteOffset, hAudioWakeEvent, hIxPlaybackThread, ix_dsp_build_pan_tables(), IX_DSP_FILE, ix_dsp_init(), ix_log_printf(), ix_mixer_thread_proc(), nStreamCount, and nVoiceCount.
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 106 of file dsp.cpp.
References dwDspFlags, hPlaybackWindow, ix_dsp_open_driver(), ix_log_printf(), and pDspDevice.
Referenced by ix_dsp_open_driver(), and ix_mixer_thread_proc().
| const char * ix_dsp_result_to_text | ( | int | result | ) |
Definition at line 263 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 146 of file dsp.cpp.
References dwDspFlags, and ix_dsp_set_config_bit1().
Referenced by ix_dsp_set_config_bit1().
| void ix_dsp_set_config_bit3 | ( | int | enabled | ) |
Definition at line 155 of file dsp.cpp.
References dwDspFlags, 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 212 of file dsp.cpp.
References dwDspFlags, pIxMalloc(), and void().
Referenced by ix_system_set_master_volume().
| void ix_dsp_set_stream_count | ( | int | streamCount | ) |
Definition at line 191 of file dsp.cpp.
References IX_DSP_FILE, ix_dsp_set_stream_count(), ix_log_printf(), nAllocatedStreams, nStreamCount, and nVoicesAllocated.
Referenced by ix_dsp_set_stream_count().
| void ix_dsp_set_voice_count | ( | int | voiceCount | ) |
Definition at line 170 of file dsp.cpp.
References IX_DSP_FILE, ix_dsp_set_voice_count(), ix_log_printf(), nAllocatedStreams, nVoiceCount, and nVoicesAllocated.
Referenced by ix_dsp_set_voice_count(), and ix_system_set_voice_count().
Definition at line 58 of file dsp.cpp.
References csMixer, dwDspFlags, hAudioWakeEvent, hIxPlaybackThread, ix_dsp_shutdown(), and pDspDevice.
Referenced by ix_dsp_shutdown(), ix_streamer_destroy(), and ix_system_shutdown().
| void *__cdecl * pIxMalloc | ( | unsigned int | ) |
References pIxMalloc().
Referenced by ix_dsp_alloc(), ix_dsp_set_master_volume(), ix_streamer_open_file(), ix_streamer_open_stream_file(), ix_system_new_sample(), ix_system_new_sound(), and pIxMalloc().
| void | ( | __cdecl * | pIxFree | ) |
References void().
Referenced by CaptureSpriteBackground(), CreateCannedSceneObject(), decrement_lock_time(), DisplayTrainSimHighScoreTable(), DrawBriefingCharacter(), DrawNavCrossMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), DrawViewportPolygonHook(), escorting_a_ship(), EventManagerHook(), FadeViewportPaletteToColour(), fire_when_ready(), fizzle_fade(), FlushSoundEffectsAndLog(), FrameTimerCallback(), general_zig(), GetFixedOneMillionThunk(), GetFixedOneMillionThunkAlt(), GetJoystickButtonEdge(), GetPacketDecompressionResult(), GetShutdownErrorCode(), GetStartupErrorCode(), GetTransformedShapeBounds(), InitializeDIBScreenViewport(), ix_dsp_set_master_volume(), ix_streamer_thread_proc(), JoystickEdgeHook(), MarkActivePaletteEntries(), Mburnout(), MemoryServiceMapHook(), MemoryServiceQueryHook(), MemoryServiceReleaseHook(), MemoryServiceTransferHook(), Mfish_hook(), PlayCockpitSelectionSfx(), point_at(), PreloadMusicTrackHook(), PrepareShapeRLEData(), RasterLineHook(), ReleaseMusicTrackHook(), ResetAllocationDepth(), ResetDiskPromptTimerHook(), RestoreSpriteBackground(), SetMusBreakpt(), ShipAiState35(), ShouldSuspendCursorForRect(), ShowCarrierLaunchSequence(), ShutdownHook(), snow_viewport(), StartupHook(), StopMusic(), SystemDebugPrintf(), void(), WaitForSceneAdvance(), and WinMain().
| short asPanGains[512] |
Definition at line 30 of file dsp.cpp.
Referenced by ix_dsp_build_pan_tables(), IxVoice::ix_dspv_recalc_mix, and void().
| unsigned int dwDspFlags |
Definition at line 27 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_set_master_volume(), ix_dsp_shutdown(), ix_mixer_service(), and ix_mixer_thread_proc().
| unsigned int dwDspTick |
Definition at line 31 of file dsp.cpp.
Referenced by ix_dsp_get_tick(), and ix_mixer_service().
| DWORD dwMixerThreadId |
Definition at line 28 of file dsp.cpp.
Referenced by ix_dsp_init().
| unsigned int dwMixerWriteOffset |
Definition at line 24 of file dsp.cpp.
Referenced by ix_dsp_init(), and ix_mixer_service().
| unsigned int dwSoundBufferSize |
Definition at line 26 of file dsp.cpp.
Referenced by ix_mixer_service(), and ix_mixer_thread_proc().
| HANDLE hAudioWakeEvent |
Definition at line 23 of file dsp.cpp.
Referenced by ix_dsp_configure(), ix_dsp_init(), ix_dsp_shutdown(), and ix_mixer_thread_proc().
| HANDLE hIxPlaybackThread |
Definition at line 21 of file dsp.cpp.
Referenced by ix_dsp_init(), and ix_dsp_shutdown().
| HWND hPlaybackWindow |
Definition at line 22 of file dsp.cpp.
Referenced by ix_dsp_configure(), and ix_dsp_open_driver().
| unsigned short nMasterVolume = 0xffff |
Definition at line 17 of file dsp.cpp.
Referenced by ix_dsp_get_master_volume(), IxVoice::ix_dsp_set_master_volume, IxVoice::ix_dspv_recalc_mix, ix_mixer_thread_proc(), and void().
| LPDIRECTSOUND pDspDevice |
Definition at line 25 of file dsp.cpp.
Referenced by ix_dsp_configure(), ix_dsp_open_driver(), ix_dsp_shutdown(), and ix_mixer_thread_proc().
| LPDIRECTSOUNDBUFFER pDspPrimaryBuffer |
Definition at line 32 of file dsp.cpp.
Referenced by ix_mixer_thread_proc().
| LPDIRECTSOUNDBUFFER pMixerBuffer |
Definition at line 29 of file dsp.cpp.
Referenced by ix_mixer_service(), and ix_mixer_thread_proc().