|
Wing Commander II
Reconstructed Win32 source (1996)
|
Audio classes, DirectSound interfaces and shared ix state. More...
#include <windows.h>#include <stdio.h>Go to the source code of this file.
Data Structures | |
| struct | IxVoice |
| struct | IxSample |
| struct | IxSound |
| struct | IxStream |
| struct | IxStreamerHeader |
| struct | IxStreamerFileEntry |
| struct | IxStreamerAudioChunk |
| struct | IxStreamerBranch |
| struct | IxStreamerTrigger |
| struct | IxStreamerFileChunk |
| struct | IxStreamFile |
Macros | |
| #define | IX_MIXER_BASE_RATE 22050 |
| #define | IX_DSPV_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dspv.cpp" |
| #define | IX_DSPS_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dsps.cpp" |
Audio classes, DirectSound interfaces and shared ix state.
Definition in file ix.h.
| #define IX_DSPS_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dsps.cpp" |
Definition at line 217 of file ix.h.
Referenced by ix_dsps_alloc(), ix_dsps_free(), ix_dsps_get_buffer_free(), ix_dsps_get_flags(), ix_dsps_lock(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_set_volume(), ix_dsps_stop(), and ix_dsps_unlock().
| #define IX_DSPV_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dspv.cpp" |
Definition at line 169 of file ix.h.
Referenced by ix_dspv_clear_active(), ix_dspv_clear_flag4(), ix_dspv_get_flags(), ix_dspv_get_position(), ix_dspv_set_active(), ix_dspv_set_bits_per_sample(), ix_dspv_set_buffer(), ix_dspv_set_channels(), ix_dspv_set_frequency(), ix_dspv_set_pan(), ix_dspv_set_position(), and ix_dspv_set_volume().
| #define IX_MIXER_BASE_RATE 22050 |
Definition at line 160 of file ix.h.
Referenced by ix_dsps_alloc(), and ix_dspv_set_frequency().
| enum IxSampleFlags |
| enum IxSoundFlags |
| enum IxStreamerFlags |
| enum IxStreamFileFlags |
| enum IxStreamFlags |
| enum IxVoiceFlags |
|
extern |
References g_pIxMalloc().
| 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().
| const char * ix_dsp_result_to_text | ( | int | hr | ) |
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 | vol | ) |
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 | n | ) |
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 | n | ) |
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 ix_dsps_alloc | ( | int | stream, |
| unsigned int | size, | ||
| int | frequency, | ||
| int | bitsPerSample, | ||
| int | channels ) |
Definition at line 30 of file dsps.cpp.
References IxStream::buffer, IxVoice::cursor, IxVoice::end, IxVoice::field_10, IxStream::flags, IxVoice::flags, g_1_streams, g_2_voices, g_3_nStreamCount, g_nStreamsTaken, g_nVoiceCapacity, ix_dsps_alloc(), IX_DSPS_FILE, ix_log_printf(), IX_MIXER_BASE_RATE, IX_STREAM_ALLOCATED, IX_STREAM_PLAYING, IX_VOICE_16BIT, IX_VOICE_FLAG4, IX_VOICE_STEREO, IxVoice::leftGain, IxVoice::leftGainHi, IxStream::pending, IxStream::playPos, IxVoice::rate, IxVoice::rightGain, IxVoice::rightGainHi, IxStream::size, IxVoice::start, IxVoice::volume, and IxStream::writePos.
Referenced by ix_dsps_alloc(), and ix_streamer_open_stream_file().
| void ix_dsps_free | ( | int | stream | ) |
Definition at line 88 of file dsps.cpp.
References IxStream::buffer, IxStream::flags, g_1_streams, g_3_nStreamCount, g_nStreamsTaken, IX_DSPS_FILE, ix_dsps_free(), ix_dsps_stop(), ix_log_printf(), IX_STREAM_ALLOCATED, and IX_STREAM_PLAYING.
Referenced by ix_dsps_free(), and ix_streamer_close_stream_file().
| unsigned int ix_dsps_get_flags | ( | int | stream | ) |
Definition at line 212 of file dsps.cpp.
References IxStream::flags, g_1_streams, g_3_nStreamCount, IX_DSPS_FILE, ix_dsps_get_flags(), and ix_log_printf().
Referenced by ix_dsps_get_flags().
| void ix_dsps_lock | ( | int | stream, |
| unsigned int | requestedBytes, | ||
| unsigned char ** | buffer, | ||
| unsigned int * | lockedBytes ) |
Definition at line 265 of file dsps.cpp.
References IxStream::buffer, IxStream::flags, g_1_streams, g_3_nStreamCount, IX_DSPS_FILE, ix_dsps_lock(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_LOCKED, IxStream::lockLen, IxStream::lockPtr, IxStream::size, and IxStream::writePos.
Referenced by ix_dsps_lock(), and ix_thread_lock_stream_buffer().
| void ix_dsps_play | ( | int | stream | ) |
Definition at line 134 of file dsps.cpp.
References IxStream::buffer, IxVoice::cursor, IxStream::flags, IxVoice::flags, g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_play(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_PLAYING, IX_VOICE_ACTIVE, and IxStream::playPos.
Referenced by ix_dsps_play(), ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_prepare | ( | int | stream | ) |
Definition at line 109 of file dsps.cpp.
References IxStream::buffer, IxVoice::cursor, g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_prepare(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_PLAYING, IxStream::pending, IxStream::playPos, and IxStream::writePos.
Referenced by ix_dsps_prepare(), ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_set_volume | ( | int | stream, |
| unsigned short | vol ) |
Definition at line 188 of file dsps.cpp.
References g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_set_volume(), ix_log_printf(), IX_STREAM_ALLOCATED, IxVoice::leftGain, IxVoice::leftGainHi, IxVoice::rightGain, IxVoice::rightGainHi, and IxVoice::volume.
Referenced by ix_dsps_set_volume(), ix_streamer_open_stream_file(), and ix_streamer_set_volume().
| void ix_dsps_stop | ( | int | stream | ) |
Definition at line 161 of file dsps.cpp.
References IxStream::flags, IxVoice::flags, g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_stop(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_PLAYING, and IX_VOICE_ACTIVE.
Referenced by ix_dsps_free(), ix_dsps_stop(), ix_streamer_force_trigger(), ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dspv_clear_active | ( | int | voice | ) |
Definition at line 42 of file dspv.cpp.
References IxVoice::flags, g_2_voices, g_nVoiceCapacity, ix_dspv_clear_active(), IX_DSPV_FILE, ix_log_printf(), and IX_VOICE_ACTIVE.
Referenced by ix_dspv_clear_active(), and ix_system_release_voice().
| void ix_dspv_clear_flag4 | ( | int | voice | ) |
Definition at line 55 of file dspv.cpp.
References IxVoice::flags, g_2_voices, g_nVoiceCapacity, ix_dspv_clear_flag4(), IX_DSPV_FILE, ix_log_printf(), and IX_VOICE_FLAG4.
Referenced by ix_dspv_clear_flag4(), and ix_sound_release().
| unsigned int ix_dspv_get_flags | ( | int | voice | ) |
Definition at line 66 of file dspv.cpp.
References IxVoice::flags, g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_get_flags(), and ix_log_printf().
Referenced by ix_dspv_get_flags(), ix_system_find_free_voice(), and ix_system_service_sounds().
| int ix_dspv_get_position | ( | int | voice | ) |
Definition at line 104 of file dspv.cpp.
References IxVoice::cursor, g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_get_position(), ix_log_printf(), and IxVoice::start.
Referenced by ix_dspv_get_position().
References ix_dspv_mix().
Referenced by ix_dspv_mix(), and ix_mixer_service().
| void ix_dspv_recalc_mix | ( | int | voice | ) |
Definition at line 227 of file dspv.cpp.
References g_2_voices, g_3_anPanTable, g_7_csMixer, g_nMasterVolume, ix_dspv_recalc_mix(), IxVoice::leftGain, IxVoice::leftGainHi, IxVoice::panPos, IxVoice::rightGain, IxVoice::rightGainHi, and IxVoice::volume.
Referenced by ix_dsp_set_master_volume(), ix_dspv_recalc_mix(), ix_dspv_set_pan(), and ix_dspv_set_volume().
| void ix_dspv_set_active | ( | int | voice | ) |
Definition at line 31 of file dspv.cpp.
References IxVoice::flags, g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_set_active(), ix_log_printf(), and IX_VOICE_ACTIVE.
Referenced by ix_dspv_set_active(), and ix_system_assign_voice().
| void ix_dspv_set_bits_per_sample | ( | int | voice, |
| int | bps ) |
Definition at line 189 of file dspv.cpp.
References IxVoice::flags, g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_set_bits_per_sample(), ix_log_printf(), and IX_VOICE_16BIT.
Referenced by ix_dspv_set_bits_per_sample(), and ix_system_assign_voice().
| void ix_dspv_set_buffer | ( | int | voice, |
| unsigned char * | p, | ||
| int | len ) |
Definition at line 87 of file dspv.cpp.
References IxVoice::cursor, IxVoice::end, g_2_voices, g_7_csMixer, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_set_buffer(), ix_log_printf(), and IxVoice::start.
Referenced by ix_dspv_set_buffer(), and ix_system_assign_voice().
| void ix_dspv_set_channels | ( | int | voice, |
| int | ch ) |
Definition at line 208 of file dspv.cpp.
References IxVoice::flags, g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_set_channels(), ix_log_printf(), and IX_VOICE_STEREO.
Referenced by ix_dspv_set_channels(), and ix_system_assign_voice().
| void ix_dspv_set_flag4 | ( | int | voice, |
| int | on ) |
Definition at line 78 of file dspv.cpp.
References IxVoice::flags, g_2_voices, ix_dspv_set_flag4(), and IX_VOICE_FLAG4.
Referenced by ix_dspv_set_flag4(), and ix_system_assign_voice().
| void ix_dspv_set_frequency | ( | int | voice, |
| unsigned int | hz ) |
Definition at line 177 of file dspv.cpp.
References g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_set_frequency(), ix_log_printf(), IX_MIXER_BASE_RATE, and IxVoice::rate.
Referenced by ix_dspv_set_frequency(), ix_system_assign_voice(), and ix_system_service_sounds().
| void ix_dspv_set_pan | ( | int | voice, |
| unsigned short | a ) |
Definition at line 147 of file dspv.cpp.
References g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_recalc_mix(), ix_dspv_set_pan(), ix_log_printf(), IxVoice::panAngle, and IxVoice::panPos.
Referenced by ix_dspv_set_pan(), ix_system_assign_voice(), and ix_system_service_sounds().
| void ix_dspv_set_position | ( | int | voice, |
| int | off ) |
Definition at line 119 of file dspv.cpp.
References IxVoice::cursor, g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_set_position(), ix_log_printf(), and IxVoice::start.
Referenced by ix_dspv_set_position(), and ix_system_assign_voice().
| void ix_dspv_set_volume | ( | int | voice, |
| short | vol ) |
Definition at line 135 of file dspv.cpp.
References g_2_voices, g_nVoiceCapacity, IX_DSPV_FILE, ix_dspv_recalc_mix(), ix_dspv_set_volume(), ix_log_printf(), and IxVoice::volume.
Referenced by ix_dspv_set_volume(), ix_system_assign_voice(), and ix_system_service_sounds().
| void ix_file_close | ( | FILE * | file | ) |
Definition at line 42 of file ixfile.cpp.
References ix_file_close().
Referenced by ix_file_close(), ix_streamer_close_file(), and ix_streamer_close_stream_file().
| FILE * ix_file_open | ( | const char * | path, |
| int | mode ) |
Definition at line 28 of file ixfile.cpp.
References ix_file_open().
Referenced by ix_file_open(), ix_streamer_open_file(), and ix_streamer_open_stream_file().
| unsigned int ix_file_read | ( | FILE * | file, |
| void * | destination, | ||
| unsigned int | bytes ) |
Definition at line 60 of file ixfile.cpp.
References ix_file_read().
Referenced by ix_file_read(), ix_streamer_open_stream_file(), ix_thread_handle_file_chunk(), and ix_thread_lock_stream_buffer().
| void ix_file_seek | ( | FILE * | file, |
| long | position ) |
Definition at line 48 of file ixfile.cpp.
References ix_file_seek().
Referenced by ix_file_seek(), ix_streamer_open_stream_file(), ix_thread_handle_file_chunk(), and ix_thread_lock_stream_buffer().
| long ix_file_size | ( | FILE * | file | ) |
Definition at line 75 of file ixfile.cpp.
References ix_file_size().
Referenced by ix_file_size(), and ix_streamer_open_file().
| long ix_file_tell | ( | FILE * | file | ) |
Definition at line 54 of file ixfile.cpp.
References ix_file_tell().
Referenced by ix_file_tell(), and ix_thread_handle_file_chunk().
| void ix_log_printf | ( | const char * | fmt, |
| ... ) |
Definition at line 164 of file stream.cpp.
References g_3_szIxLogText, and ix_log_printf().
Referenced by ix_dsp_init(), ix_dsp_open_driver(), ix_dsp_set_stream_count(), ix_dsp_set_voice_count(), ix_dsps_alloc(), ix_dsps_free(), ix_dsps_get_buffer_free(), ix_dsps_get_flags(), ix_dsps_lock(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_set_volume(), ix_dsps_stop(), ix_dsps_unlock(), ix_dspv_clear_active(), ix_dspv_clear_flag4(), ix_dspv_get_flags(), ix_dspv_get_position(), ix_dspv_set_active(), ix_dspv_set_bits_per_sample(), ix_dspv_set_buffer(), ix_dspv_set_channels(), ix_dspv_set_frequency(), ix_dspv_set_pan(), ix_dspv_set_position(), ix_dspv_set_volume(), ix_log_printf(), ix_mixer_service(), ix_mixer_thread_proc(), IxSample::ix_sample_load_aiff(), IxSample::ix_sample_load_raw(), IxSample::ix_sample_load_wav(), ix_sound_release(), ix_sound_start(), ix_sound_stop(), ix_streamer_audio_pause(), ix_streamer_audio_play(), ix_streamer_audio_reprepare(), ix_streamer_audio_stop(), ix_streamer_close_stream_file(), ix_streamer_destroy(), ix_streamer_force_trigger(), ix_streamer_init(), ix_streamer_open_file(), ix_streamer_open_stream_file(), ix_streamer_set_dev_mode(), ix_system_init(), ix_system_set_voice_count(), ix_thread_handle_file_chunk(), and ix_thread_lock_stream_buffer().
| void ix_lzo1x_decompress | ( | unsigned char * | source, |
| unsigned char * | destination, | ||
| unsigned int | destinationBytes ) |
Definition at line 16 of file lzo1x.cpp.
References ix_lzo1x_decompress().
Referenced by ix_lzo1x_decompress(), and ix_thread_handle_file_chunk().
| int ix_mixer_service | ( | void | ) |
Definition at line 159 of file mixer.cpp.
References g_3_dwMixWriteOffset, g_5_dwSoundOptions, g_6_dwDsoundTick, g_7_csMixer, g_dwMixerScratchSize, g_pMixerBuffer, ix_dsp_result_to_text(), ix_dspv_mix(), ix_log_printf(), IX_MIXER_FILE, and ix_mixer_service().
Referenced by ix_mixer_service(), and ix_mixer_thread_proc().
| DWORD WINAPI ix_mixer_thread_proc | ( | void * | parameter | ) |
Definition at line 35 of file mixer.cpp.
References g_1_pDirectSound, g_1_pPrimarySoundBuffer, g_2_hMixerRouseEvent, g_5_dwSoundOptions, g_dwMixerScratchSize, g_nMasterVolume, g_pMixerBuffer, ix_dsp_open_driver(), ix_dsp_result_to_text(), ix_log_printf(), IX_MIXER_FILE, ix_mixer_service(), and ix_mixer_thread_proc().
Referenced by ix_dsp_init(), and ix_mixer_thread_proc().
Definition at line 359 of file streamer.cpp.
References g_1_hStreamRouseEvent, g_dwStreamerMode, ix_log_printf(), ix_streamer_audio_pause(), IX_STREAMER_AUDIO_PAUSED, IX_STREAMER_FILE, and IX_STREAMER_HAS_AUDIO.
Referenced by ix_streamer_audio_pause().
Definition at line 333 of file streamer.cpp.
Definition at line 371 of file streamer.cpp.
References g_1_hStreamRouseEvent, g_dwStreamerMode, ix_log_printf(), ix_streamer_audio_reprepare(), IX_STREAMER_FILE, IX_STREAMER_HAS_AUDIO, and IX_STREAMER_REPREPARE_AUDIO.
Referenced by ix_streamer_audio_reprepare().
Definition at line 346 of file streamer.cpp.
| void ix_streamer_close_file | ( | IxStreamFile * | streamFile | ) |
Definition at line 627 of file streamer.cpp.
References IxStreamFile::completionEvent, IxStreamFile::file, g_48_pPumpIdleFiles, g_csStreamerFileFifo, g_dwStreamerMode, ix_file_close(), IxStreamFile::ix_stream_file_wait(), ix_streamer_close_file(), IX_STREAMER_DEVELOPER_MODE, IxStreamFile::next, and IxStreamFile::previous.
Referenced by ix_streamer_close_file(), and ix_streamer_close_stream_file().
Definition at line 294 of file streamer.cpp.
Definition at line 99 of file streamer.cpp.
Definition at line 78 of file streamer.cpp.
| IxStreamerFileEntry * ix_streamer_find_entry | ( | unsigned int | hash | ) |
Definition at line 536 of file streamer.cpp.
References IxStreamerHeader::fileEntryCount, g_3_pReaderFileEntries, g_pStreamPrologue, ix_streamer_find_entry(), and IxStreamerFileEntry::nameHash.
Referenced by ix_streamer_find_entry(), and ix_streamer_open_file().
| void ix_streamer_force_trigger | ( | char | trigger | ) |
Definition at line 420 of file streamer.cpp.
| unsigned int ix_streamer_get_audio_chunk | ( | void | ) |
Definition at line 493 of file streamer.cpp.
References g_6_dwStreamSoundChunk, and ix_streamer_get_audio_chunk().
Referenced by ix_streamer_get_audio_chunk().
| unsigned char ix_streamer_get_intensity | ( | void | ) |
Definition at line 393 of file streamer.cpp.
References g_6_bFeederLevel, and ix_streamer_get_intensity().
Referenced by ix_streamer_get_intensity().
| char ix_streamer_get_trigger | ( | void | ) |
Definition at line 414 of file streamer.cpp.
References g_cStreamerBranchTag, and ix_streamer_get_trigger().
Referenced by ix_streamer_get_trigger().
| unsigned short ix_streamer_get_volume | ( | void | ) |
Definition at line 487 of file streamer.cpp.
| unsigned int ix_streamer_hash_name | ( | unsigned char * | name | ) |
Definition at line 514 of file streamer.cpp.
References ix_streamer_hash_name().
Referenced by ix_streamer_hash_name(), and ix_streamer_open_file().
| int ix_streamer_init | ( | void | ) |
Definition at line 48 of file streamer.cpp.
| IxStreamFile * ix_streamer_open_file | ( | unsigned char * | name, |
| unsigned char | priority ) |
Definition at line 560 of file streamer.cpp.
References IxStreamFile::completionEvent, IxStreamFile::entry, IxStreamFile::file, IxStreamFile::flags, g_48_pPumpIdleFiles, g_csStreamerFileFifo, g_dwStreamerMode, g_pIxMalloc(), ix_file_open(), ix_file_size(), ix_log_printf(), IX_STREAM_FILE_OPEN, IX_STREAMER_DEVELOPER_MODE, IX_STREAMER_FILE, ix_streamer_find_entry(), ix_streamer_hash_name(), ix_streamer_open_file(), IxStreamFile::next, IxStreamFile::position, IxStreamFile::previous, IxStreamFile::priority, IxStreamerFileEntry::size, and IxStreamFile::size.
Referenced by ix_streamer_open_file().
| int ix_streamer_open_stream_file | ( | char * | path | ) |
Definition at line 120 of file streamer.cpp.
| void ix_streamer_seek_chunk | ( | unsigned int | chunk | ) |
Definition at line 499 of file streamer.cpp.
References IxStreamerHeader::audioChunkCount, g_1_csStreamer, g_6_dwStreamSoundChunk, g_pStreamPrologue, and ix_streamer_seek_chunk().
Referenced by ix_streamer_audio_stop(), and ix_streamer_seek_chunk().
| unsigned int ix_streamer_service_audio | ( | void | ) |
Definition at line 96 of file thread.cpp.
References IxStreamerHeader::audioBufferSize, g_16_nStreamerBytesEachSecond, g_dwStreamerMode, g_pStreamPrologue, ix_dsps_get_buffer_free(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_stop(), IX_STREAMER_DSP_PLAYING, IX_STREAMER_END_TRIGGERED, ix_streamer_service_audio(), ix_thread_get_audio_chunk_size(), ix_thread_lock_stream_buffer(), and ix_thread_service_streams().
Referenced by ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_streamer_set_dev_mode | ( | int | mode | ) |
Definition at line 105 of file streamer.cpp.
References g_1_pPlayerReadQueue, g_48_pPumpIdleFiles, g_dwStreamerMode, ix_log_printf(), IX_STREAMER_DEVELOPER_MODE, IX_STREAMER_FILE, and ix_streamer_set_dev_mode().
Referenced by ix_streamer_set_dev_mode().
| void ix_streamer_set_intensity | ( | unsigned char | intensity | ) |
Definition at line 383 of file streamer.cpp.
| void ix_streamer_set_trigger | ( | char | trigger | ) |
Definition at line 399 of file streamer.cpp.
| void ix_streamer_set_volume | ( | unsigned short | vol | ) |
Definition at line 471 of file streamer.cpp.
| DWORD WINAPI ix_streamer_thread_proc | ( | void * | parameter | ) |
Definition at line 21 of file thread.cpp.
References g_18_dwStreamerThreadTick, g_1_csStreamer, g_1_hStreamRouseEvent, g_49_csStreamWorker, g_dwStreamerMode, ix_dsps_play(), ix_dsps_prepare(), ix_dsps_stop(), IX_STREAMER_AUDIO_PAUSED, IX_STREAMER_AUDIO_PLAYING, IX_STREAMER_DSP_PAUSED, IX_STREAMER_DSP_PLAYING, IX_STREAMER_END_TRIGGERED, IX_STREAMER_FILE_OPEN, IX_STREAMER_HAS_AUDIO, IX_STREAMER_REPREPARE_AUDIO, ix_streamer_service_audio(), IX_STREAMER_SHUTDOWN, ix_streamer_thread_proc(), IX_STREAMER_THREAD_RUNNING, ix_thread_service_streams(), and void().
Referenced by ix_streamer_init(), and ix_streamer_thread_proc().
Definition at line 237 of file system.cpp.
References IxSample::bitsPerSample, IxSample::buffer, IxSample::bytesPerFrame, IxSample::channels, IxSound::flags, IxSample::frequency, g_nActiveVoices, ix_dsp_get_tick(), ix_dspv_set_active(), ix_dspv_set_bits_per_sample(), ix_dspv_set_buffer(), ix_dspv_set_channels(), ix_dspv_set_flag4(), ix_dspv_set_frequency(), ix_dspv_set_pan(), ix_dspv_set_position(), ix_dspv_set_volume(), IX_SOUND_FREQUENCY_DIRTY, IX_SOUND_HAS_VOICE, IX_SOUND_LOOPING, IX_SOUND_PAN_DIRTY, IX_SOUND_VOLUME_DIRTY, ix_system_assign_voice(), IxSample::loopEnd, IxSample::loopStart, IxSound::pan, IxSound::pitchOffset, IxSample::rateDenominator, IxSample::rateNumerator, IxSound::sample, IxSample::sampleCount, IxSound::startTime, IxSound::voice, and IxSound::volume.
Referenced by IxSound::ix_sound_reprioritise(), ix_sound_start(), ix_sound_stop(), and ix_system_assign_voice().
Definition at line 104 of file system.cpp.
Definition at line 159 of file system.cpp.
Definition at line 197 of file system.cpp.
Definition at line 150 of file system.cpp.
References IxSample::ix_sample_destruct(), and ix_system_delete_sample().
Referenced by ix_system_delete_all_samples(), and ix_system_delete_sample().
Definition at line 184 of file system.cpp.
| int ix_system_find_free_voice | ( | void | ) |
Definition at line 319 of file system.cpp.
References g_nSystemVoiceCount, ix_dspv_get_flags(), ix_system_find_free_voice(), and IX_VOICE_ACTIVE.
Referenced by ix_sound_start(), and ix_system_find_free_voice().
Definition at line 287 of file system.cpp.
References ix_system_find_highest_waiting(), IxSound::next, and IxSound::priority.
Referenced by IxSound::ix_sound_reprioritise(), ix_sound_stop(), and ix_system_find_highest_waiting().
Definition at line 303 of file system.cpp.
References ix_system_find_lowest_playing(), IxSound::next, and IxSound::priority.
Referenced by IxSound::ix_sound_reprioritise(), ix_sound_start(), and ix_system_find_lowest_playing().
| unsigned short ix_system_get_master_volume | ( | void | ) |
Definition at line 110 of file system.cpp.
References ix_dsp_get_master_volume(), and ix_system_get_master_volume().
Referenced by ix_system_get_master_volume().
| int ix_system_get_voice_count | ( | void | ) |
Definition at line 122 of file system.cpp.
References g_nSystemVoiceCount, and ix_system_get_voice_count().
Referenced by ix_system_get_voice_count().
| int ix_system_init | ( | void | ) |
Definition at line 25 of file system.cpp.
Definition at line 139 of file system.cpp.
Definition at line 173 of file system.cpp.
| int ix_system_release_voice | ( | IxSound * | sound | ) |
Definition at line 225 of file system.cpp.
References IxSound::flags, g_nActiveVoices, ix_dspv_clear_active(), IX_SOUND_HAS_VOICE, ix_system_release_voice(), and IxSound::voice.
Referenced by IxSound::ix_sound_reprioritise(), ix_sound_start(), ix_sound_stop(), and ix_system_release_voice().
Definition at line 46 of file system.cpp.
| void ix_system_set_master_volume | ( | unsigned short | vol | ) |
Definition at line 116 of file system.cpp.
| void ix_system_set_voice_count | ( | int | n | ) |
Definition at line 128 of file system.cpp.
Definition at line 93 of file system.cpp.
Definition at line 290 of file thread.cpp.
References IxStreamerBranch::audioChunk, IxStreamerTrigger::audioChunk, IxStreamerHeader::audioChunkCount, IxStreamerAudioChunk::branchCount, IxStreamerAudioChunk::firstBranch, IxStreamerAudioChunk::firstTrigger, g_13_adwPlayerBranchingStack, g_15_pStreamerSoundChunks, g_6_bFeederLevel, g_6_dwStreamSoundChunk, g_6_pFeederTriggers, g_7_pStreamBranches, g_cStreamerBranchTag, g_dwStreamerMode, g_nStreamerBranchStackIndex, g_pStreamPrologue, IxStreamerBranch::intensity, ix_thread_advance_audio_chunk(), and IxStreamerAudioChunk::triggerCount.
Referenced by ix_thread_advance_audio_chunk(), and ix_thread_lock_stream_buffer().
| unsigned int ix_thread_get_audio_chunk_size | ( | void | ) |
Definition at line 405 of file thread.cpp.
References IxStreamerAudioChunk::fileEnd, IxStreamerAudioChunk::fileOffset, g_15_pStreamerSoundChunks, g_6_dwStreamSoundChunk, and ix_thread_get_audio_chunk_size().
Referenced by ix_streamer_service_audio(), ix_thread_get_audio_chunk_size(), ix_thread_lock_stream_buffer(), and ix_thread_service_streams().
| void ix_thread_handle_file_chunk | ( | IxStreamFile * | streamFile | ) |
Definition at line 124 of file thread.cpp.
References IxStreamerFileEntry::chunkCount, IxStreamFile::completionEvent, IxStreamFile::destination, IxStreamFile::entry, IxStreamFile::file, IxStreamerFileChunk::fileEnd, IxStreamerFileChunk::fileOffset, IxStreamerFileEntry::firstChunk, IxStreamerFileChunk::firstPacket, IxStreamFile::flags, g_126_pReaderCompressedBuf, g_17_pStreamerFileParts, g_18_dwStreamerThreadTick, g_1_pFeederPackageDisk, g_1_pPlayerReadQueue, g_48_pPumpIdleFiles, g_7_pStreamerPacketOffsets, g_csStreamerFileFifo, g_dwStreamerMode, g_nSpoolerDiskChunk, g_pStreamerFileStore, ix_file_read(), ix_file_seek(), ix_file_tell(), ix_log_printf(), ix_lzo1x_decompress(), IX_STREAM_FILE_READING, IX_THREAD_FILE, ix_thread_handle_file_chunk(), IxStreamFile::next, IxStreamerFileChunk::packedSize, IxStreamerFileChunk::packetCount, IxStreamFile::position, IxStreamFile::previous, IxStreamFile::remaining, and IxStreamFile::serviceTick.
Referenced by ix_thread_handle_file_chunk(), and ix_thread_service_streams().
Definition at line 375 of file thread.cpp.
References IxStreamerAudioChunk::fileOffset, g_15_pStreamerSoundChunks, g_1_pFeederPackageDisk, g_6_dwStreamSoundChunk, ix_dsps_lock(), ix_dsps_unlock(), ix_file_read(), ix_file_seek(), ix_log_printf(), ix_thread_advance_audio_chunk(), IX_THREAD_FILE, ix_thread_get_audio_chunk_size(), and ix_thread_lock_stream_buffer().
Referenced by ix_streamer_service_audio(), and ix_thread_lock_stream_buffer().
| unsigned int ix_thread_service_streams | ( | void | ) |
Definition at line 247 of file thread.cpp.
References g_16_nStreamerBytesEachSecond, g_1_pPlayerReadQueue, g_csStreamerFileFifo, g_dwStreamerMode, ix_dsps_get_buffer_free(), ix_thread_get_audio_chunk_size(), ix_thread_handle_file_chunk(), ix_thread_service_streams(), IxStreamFile::previous, IxStreamFile::priority, and IxStreamFile::serviceTick.
Referenced by ix_streamer_service_audio(), ix_streamer_thread_proc(), and ix_thread_service_streams().
|
extern |
References g_3_anPanTable, g_7_csMixer, g_nMasterVolume, and void().
|
extern |
Definition at line 21 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_open_stream_file(), and ix_thread_handle_file_chunk().
|
extern |
Definition at line 20 of file streamer.cpp.
Referenced by ix_streamer_force_trigger(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 29 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_force_trigger(), ix_streamer_open_stream_file(), ix_thread_advance_audio_chunk(), ix_thread_get_audio_chunk_size(), and ix_thread_lock_stream_buffer().
|
extern |
Definition at line 39 of file streamer.cpp.
Referenced by ix_streamer_open_stream_file(), ix_streamer_service_audio(), and ix_thread_service_streams().
|
extern |
Definition at line 31 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_open_stream_file(), and ix_thread_handle_file_chunk().
|
extern |
Definition at line 17 of file streamer.cpp.
Referenced by ix_streamer_thread_proc(), and ix_thread_handle_file_chunk().
|
extern |
Definition at line 40 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_destroy(), ix_streamer_force_trigger(), ix_streamer_init(), ix_streamer_seek_chunk(), ix_streamer_set_volume(), and ix_streamer_thread_proc().
|
extern |
Definition at line 37 of file streamer.cpp.
Referenced by IxStreamFile::ix_stream_file_read(), ix_streamer_audio_pause(), ix_streamer_audio_play(), ix_streamer_audio_reprepare(), ix_streamer_audio_stop(), ix_streamer_close_stream_file(), ix_streamer_destroy(), ix_streamer_force_trigger(), ix_streamer_init(), ix_streamer_open_stream_file(), and ix_streamer_thread_proc().
|
extern |
Definition at line 19 of file system.cpp.
Referenced by IxSound::ix_sound_reprioritise(), ix_sound_start(), ix_sound_stop(), ix_system_delete_all_sounds(), ix_system_init(), and ix_system_service_sounds().
|
extern |
Definition at line 18 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_open_stream_file(), ix_thread_handle_file_chunk(), and ix_thread_lock_stream_buffer().
|
extern |
Definition at line 15 of file system.cpp.
Referenced by ix_sound_start(), ix_sound_stop(), IxSound::ix_sound_unlink_from_free_list(), ix_system_delete_all_sounds(), ix_system_init(), and IxSound::ix_system_sound_init().
|
extern |
Definition at line 22 of file streamer.cpp.
Referenced by IxStreamFile::ix_stream_file_read(), ix_streamer_set_dev_mode(), ix_thread_handle_file_chunk(), and ix_thread_service_streams().
|
extern |
Definition at line 20 of file system.cpp.
Referenced by IxSound::ix_sound_reprioritise(), ix_sound_start(), ix_sound_stop(), ix_system_delete_all_sounds(), ix_system_init(), and ix_system_service_sounds().
|
extern |
Definition at line 17 of file dsps.cpp.
Referenced by ix_dsps_alloc(), ix_dsps_free(), ix_dsps_get_buffer_free(), ix_dsps_get_flags(), ix_dsps_lock(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_set_volume(), ix_dsps_stop(), and ix_dsps_unlock().
|
extern |
Definition at line 19 of file dspv.cpp.
Referenced by ix_dsp_set_master_volume(), ix_dsps_alloc(), ix_dsps_get_buffer_free(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_set_volume(), ix_dsps_stop(), ix_dspv_clear_active(), ix_dspv_clear_flag4(), ix_dspv_get_flags(), ix_dspv_get_position(), ix_dspv_recalc_mix(), ix_dspv_set_active(), ix_dspv_set_bits_per_sample(), ix_dspv_set_buffer(), ix_dspv_set_channels(), ix_dspv_set_flag4(), ix_dspv_set_frequency(), ix_dspv_set_pan(), ix_dspv_set_position(), and ix_dspv_set_volume().
|
extern |
Definition at line 29 of file dsp.cpp.
Referenced by ix_dsp_build_pan_tables(), ix_dspv_recalc_mix(), and void().
|
extern |
Definition at line 15 of file dsps.cpp.
Referenced by ix_dsp_get_stream_count(), ix_dsp_init(), ix_dsp_set_stream_count(), ix_dsps_alloc(), ix_dsps_free(), ix_dsps_get_buffer_free(), ix_dsps_get_flags(), ix_dsps_lock(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_set_volume(), ix_dsps_stop(), and ix_dsps_unlock().
|
extern |
Definition at line 27 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_find_entry(), and ix_streamer_open_stream_file().
|
extern |
Definition at line 19 of file streamer.cpp.
Referenced by IxStreamFile::ix_stream_file_read(), ix_streamer_close_file(), ix_streamer_close_stream_file(), ix_streamer_open_file(), ix_streamer_open_stream_file(), ix_streamer_set_dev_mode(), and ix_thread_handle_file_chunk().
|
extern |
Definition at line 33 of file streamer.cpp.
Referenced by ix_streamer_destroy(), ix_streamer_init(), and ix_streamer_thread_proc().
|
extern |
Definition at line 23 of file streamer.cpp.
Referenced by ix_streamer_open_stream_file().
|
extern |
Definition at line 26 of file streamer.cpp.
Referenced by ix_streamer_init().
|
extern |
Definition at line 25 of file streamer.cpp.
Referenced by ix_streamer_get_intensity(), ix_streamer_set_intensity(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 34 of file streamer.cpp.
Referenced by ix_streamer_force_trigger(), ix_streamer_get_audio_chunk(), ix_streamer_open_stream_file(), ix_streamer_seek_chunk(), ix_thread_advance_audio_chunk(), ix_thread_get_audio_chunk_size(), and ix_thread_lock_stream_buffer().
|
extern |
Definition at line 41 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_force_trigger(), ix_streamer_open_stream_file(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 20 of file dspv.cpp.
Referenced by ix_dsp_init(), ix_dsp_shutdown(), ix_dspv_recalc_mix(), ix_dspv_set_buffer(), ix_mixer_service(), and void().
|
extern |
Definition at line 16 of file system.cpp.
Referenced by IxSample::ix_sample_construct(), IxSample::ix_sample_destruct(), ix_system_delete_all_samples(), and ix_system_init().
|
extern |
Definition at line 30 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_open_stream_file(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 16 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_open_stream_file(), and ix_thread_handle_file_chunk().
|
extern |
Definition at line 32 of file streamer.cpp.
Referenced by IxStreamFile::ix_stream_file_read(), ix_streamer_close_file(), ix_streamer_destroy(), ix_streamer_init(), ix_streamer_open_file(), ix_thread_handle_file_chunk(), and ix_thread_service_streams().
|
extern |
Definition at line 44 of file streamer.cpp.
Referenced by ix_streamer_get_trigger(), ix_streamer_set_trigger(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 14 of file system.cpp.
Referenced by ix_system_init(), and ix_system_shutdown().
|
extern |
Definition at line 35 of file streamer.cpp.
Referenced by ix_streamer_init().
|
extern |
Definition at line 17 of file system.cpp.
Referenced by ix_sound_start(), ix_system_assign_voice(), ix_system_init(), ix_system_release_voice(), and ix_system_set_voice_count().
|
extern |
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 38 of file streamer.cpp.
Referenced by ix_streamer_open_stream_file(), and ix_thread_handle_file_chunk().
|
extern |
Definition at line 45 of file streamer.cpp.
Referenced by ix_streamer_force_trigger(), ix_streamer_open_stream_file(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 43 of file streamer.cpp.
Referenced by ix_streamer_get_volume(), ix_streamer_open_stream_file(), and ix_streamer_set_volume().
|
extern |
Definition at line 16 of file dsps.cpp.
Referenced by ix_dsp_set_stream_count(), ix_dsp_set_voice_count(), ix_dsps_alloc(), and ix_dsps_free().
|
extern |
Definition at line 18 of file system.cpp.
Referenced by ix_sound_start(), ix_system_find_free_voice(), ix_system_get_voice_count(), ix_system_init(), and ix_system_set_voice_count().
|
extern |
Definition at line 21 of file dspv.cpp.
Referenced by ix_dsp_get_voice_count(), ix_dsp_init(), ix_dsp_set_master_volume(), ix_dsp_set_voice_count(), ix_dsps_alloc(), ix_dsps_get_buffer_free(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_set_volume(), ix_dsps_stop(), ix_dspv_clear_active(), ix_dspv_clear_flag4(), ix_dspv_get_flags(), ix_dspv_get_position(), ix_dspv_set_active(), ix_dspv_set_bits_per_sample(), ix_dspv_set_buffer(), ix_dspv_set_channels(), ix_dspv_set_frequency(), ix_dspv_set_pan(), ix_dspv_set_position(), and ix_dspv_set_volume().
|
extern |
Definition at line 24 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_open_stream_file(), and ix_thread_handle_file_chunk().
|
extern |
Definition at line 28 of file streamer.cpp.
Referenced by ix_streamer_close_stream_file(), ix_streamer_find_entry(), ix_streamer_force_trigger(), ix_streamer_open_stream_file(), ix_streamer_seek_chunk(), ix_streamer_service_audio(), and ix_thread_advance_audio_chunk().