|
Wing Commander
Reconstructed Win32 source (1996)
|
The library's classes and shared declarations. 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" |
The library's classes and shared declarations.
ix is Origin Systems' audio library, in C++; its development tree was D:\Rnd\Prj\ix. The shipped debug build preserves assert __FILE__ and __LINE__ anchors for most of its source files, but they do not establish every object boundary; linker INT3 fill and library order do. In link order:
ixlog.cpp 4426a0-44274f streamer.cpp 442750-443b0f thread.cpp 443b10-4446ff streamfile.cpp 444700-44490f dsp.cpp 444910-44518f dsps.cpp 445190-445f5f mixer.cpp 445f60-44679f dspv.cpp 4467a0-446f73 dspmix.asm 446f74-4471ff system.cpp 447200-447a1f sound.cpp 447a20-4486af sample.cpp 4486b0-4492c5 lzo1x.cpp 4614c0-46162f ixfile.cpp 461630-4617bf
The static debug CRT follows from 4492e0; LINK's second library pass places the LZO decoder and the file module between two of its members.
Definition in file ix.h.
| #define IX_DSPS_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dsps.cpp" |
Definition at line 265 of file ix.h.
Referenced by IxVoice::ix_dsps_alloc, IxStream::ix_dsps_free, IxVoice::ix_dsps_get_buffer_free, ix_dsps_get_flags(), IxStream::ix_dsps_get_flags, IxVoice::ix_dsps_play, IxVoice::ix_dsps_prepare, IxVoice::ix_dsps_set_volume, IxVoice::ix_dsps_stop, and IxStream::ix_dsps_unlock.
| #define IX_DSPV_FILE "D:\\rnd\\prj\\ix\\win95\\dsp\\dspv.cpp" |
Definition at line 205 of file ix.h.
Referenced by IxVoice::ix_dspv_clear_active, IxVoice::ix_dspv_clear_flag4, ix_dspv_get_flags(), IxVoice::ix_dspv_get_flags, IxVoice::ix_dspv_get_position, IxVoice::ix_dspv_set_active, IxVoice::ix_dspv_set_bits_per_sample, IxVoice::ix_dspv_set_channels, IxVoice::ix_dspv_set_frequency, IxVoice::ix_dspv_set_pan, IxVoice::ix_dspv_set_position, and IxVoice::ix_dspv_set_volume.
| #define IX_MIXER_BASE_RATE 22050 |
Definition at line 200 of file ix.h.
Referenced by IxVoice::ix_dsps_alloc, and IxVoice::ix_dspv_set_frequency.
| enum IxSampleFlags |
| enum IxSoundFlags |
| enum IxStreamerFlags |
| enum IxStreamFileFlags |
| enum IxStreamFlags |
| enum IxVoiceFlags |
| 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().
| const char * ix_dsp_result_to_text | ( | int | hr | ) |
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 | vol | ) |
Definition at line 94 of file dsp.cpp.
References dwDspFlags, pIxMalloc(), and void().
Referenced by ix_system_set_master_volume().
| void ix_dsp_set_stream_count | ( | int | n | ) |
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 | n | ) |
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 ix_dsps_alloc | ( | int | stream, |
| unsigned int | size, | ||
| int | frequency, | ||
| int | bitsPerSample, | ||
| int | channels ) |
Definition at line 95 of file dsps.cpp.
References streams.
Referenced by ix_streamer_open_stream_file().
| void ix_dsps_free | ( | int | stream | ) |
Definition at line 246 of file dsps.cpp.
Referenced by ix_streamer_close_stream_file().
| int ix_dsps_get_buffer_free | ( | int | stream | ) |
Definition at line 100 of file dsps.cpp.
Referenced by ix_streamer_service_audio(), and ix_thread_service_streams().
| unsigned int ix_dsps_get_flags | ( | int | stream | ) |
Definition at line 251 of file dsps.cpp.
References IX_DSPS_FILE, ix_log_printf(), and nStreamCount.
| void ix_dsps_lock | ( | int | stream, |
| unsigned int | requestedBytes, | ||
| unsigned char ** | buffer, | ||
| unsigned int * | lockedBytes ) |
Definition at line 253 of file dsps.cpp.
References ix_log_printf().
Referenced by ix_thread_lock_stream_buffer().
| void ix_dsps_play | ( | int | stream | ) |
Definition at line 97 of file dsps.cpp.
References IX_STREAM_ALLOCATED, and streams.
Referenced by ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_prepare | ( | int | stream | ) |
Definition at line 96 of file dsps.cpp.
References nAllocatedStreams.
Referenced by ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_set_volume | ( | int | stream, |
| unsigned short | vol ) |
Definition at line 99 of file dsps.cpp.
Referenced by ix_streamer_open_stream_file(), and ix_streamer_set_volume().
| void ix_dsps_stop | ( | int | stream | ) |
Definition at line 98 of file dsps.cpp.
Referenced by ix_streamer_force_trigger(), ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_unlock | ( | int | stream | ) |
Definition at line 255 of file dsps.cpp.
Referenced by ix_thread_lock_stream_buffer().
| void ix_dspv_clear_active | ( | int | voice | ) |
Definition at line 80 of file dspv.cpp.
Referenced by ix_system_release_voice().
| void ix_dspv_clear_flag4 | ( | int | voice | ) |
| unsigned int ix_dspv_get_flags | ( | int | voice | ) |
Definition at line 82 of file dspv.cpp.
References IX_DSPV_FILE, and ix_log_printf().
Referenced by ix_system_find_free_voice(), and ix_system_service_sounds().
References ix_dspv_mix().
Referenced by ix_dspv_mix(), and ix_mixer_service().
| void ix_dspv_set_active | ( | int | voice | ) |
Definition at line 79 of file dspv.cpp.
Referenced by ix_system_assign_voice().
| void ix_dspv_set_bits_per_sample | ( | int | voice, |
| int | bps ) |
Definition at line 90 of file dspv.cpp.
Referenced by ix_system_assign_voice().
| void ix_dspv_set_buffer | ( | int | voice, |
| unsigned char * | p, | ||
| int | len ) |
Definition at line 84 of file dspv.cpp.
Referenced by ix_system_assign_voice().
| void ix_dspv_set_channels | ( | int | voice, |
| int | ch ) |
Definition at line 91 of file dspv.cpp.
Referenced by ix_system_assign_voice().
| void ix_dspv_set_flag4 | ( | int | voice, |
| int | on ) |
Definition at line 83 of file dspv.cpp.
References ix_log_printf().
Referenced by ix_system_assign_voice().
| void ix_dspv_set_frequency | ( | int | voice, |
| unsigned int | hz ) |
Definition at line 89 of file dspv.cpp.
Referenced by ix_system_assign_voice(), and ix_system_service_sounds().
| void ix_dspv_set_pan | ( | int | voice, |
| unsigned short | a ) |
Definition at line 88 of file dspv.cpp.
References csMixer.
Referenced by ix_system_assign_voice(), and ix_system_service_sounds().
| void ix_dspv_set_position | ( | int | voice, |
| int | off ) |
| void ix_dspv_set_volume | ( | int | voice, |
| short | vol ) |
Definition at line 87 of file dspv.cpp.
Referenced by ix_system_assign_voice(), and ix_system_service_sounds().
| void ix_file_close | ( | FILE * | file | ) |
Definition at line 44 of file ixfile.cpp.
References ix_file_close().
Referenced by ix_file_close(), ix_streamer_close_file(), and ix_streamer_close_stream_file().
Definition at line 20 of file ixfile.cpp.
References ix_file_init_hook().
Referenced by ix_file_init_hook().
| FILE * ix_file_open | ( | const char * | path, |
| int | mode ) |
Definition at line 30 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 62 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 50 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().
Definition at line 25 of file ixfile.cpp.
References ix_file_shutdown_hook().
Referenced by ix_file_shutdown_hook().
| long ix_file_size | ( | FILE * | file | ) |
Definition at line 76 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 56 of file ixfile.cpp.
References ix_file_tell().
Referenced by ix_file_tell(), and ix_thread_handle_file_chunk().
| unsigned int ix_file_write | ( | FILE * | file, |
| const void * | source, | ||
| unsigned int | bytes ) |
Definition at line 69 of file ixfile.cpp.
References ix_file_write().
Referenced by ix_file_write().
| void ix_log_printf | ( | const char * | fmt, |
| ... ) |
Definition at line 32 of file ixlog.cpp.
References ix_log_printf(), SoundDebugPrintf(), and szLogBuf.
Referenced by ix_dsp_init(), ix_dsp_open_driver(), ix_dsp_set_stream_count(), ix_dsp_set_voice_count(), IxVoice::ix_dsps_alloc, IxStream::ix_dsps_free, IxVoice::ix_dsps_get_buffer_free, ix_dsps_get_flags(), IxStream::ix_dsps_get_flags, ix_dsps_lock(), IxVoice::ix_dsps_play, IxVoice::ix_dsps_prepare, IxVoice::ix_dsps_set_volume, IxVoice::ix_dsps_stop, IxStream::ix_dsps_unlock, IxVoice::ix_dspv_clear_active, IxVoice::ix_dspv_clear_flag4, ix_dspv_get_flags(), IxVoice::ix_dspv_get_flags, IxVoice::ix_dspv_get_position, IxVoice::ix_dspv_set_active, IxVoice::ix_dspv_set_bits_per_sample, IxVoice::ix_dspv_set_channels, ix_dspv_set_flag4(), IxVoice::ix_dspv_set_frequency, IxVoice::ix_dspv_set_pan, IxVoice::ix_dspv_set_position, IxVoice::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 22 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 157 of file mixer.cpp.
References csMixer, dwDspFlags, dwDspTick, dwMixerWriteOffset, dwSoundBufferSize, ix_dsp_result_to_text(), ix_dspv_mix(), ix_log_printf(), IX_MIXER_FILE, ix_mixer_service(), and pMixerBuffer.
Referenced by ix_mixer_service(), and ix_mixer_thread_proc().
| DWORD WINAPI ix_mixer_thread_proc | ( | void * | parameter | ) |
Definition at line 33 of file mixer.cpp.
References dwDspFlags, dwSoundBufferSize, hAudioWakeEvent, ix_dsp_open_driver(), ix_dsp_result_to_text(), ix_log_printf(), IX_MIXER_FILE, ix_mixer_service(), ix_mixer_thread_proc(), nMasterVolume, pDspDevice, pDspPrimaryBuffer, and pMixerBuffer.
Referenced by ix_dsp_init(), and ix_mixer_thread_proc().
Definition at line 56 of file sound.cpp.
References IxSound::flags, IX_SOUND_ALLOCATED, ix_sound_unlink_from_free_list(), IxSound::next, pIdleSoundList, and IxSound::previous.
Referenced by ix_sound_unlink_from_free_list(), and ix_system_delete_sound().
Definition at line 362 of file streamer.cpp.
References dwIxStreamerStatus, hStreamerWakeupEvent, 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 336 of file streamer.cpp.
Definition at line 374 of file streamer.cpp.
References dwIxStreamerStatus, hStreamerWakeupEvent, 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 349 of file streamer.cpp.
| void ix_streamer_close_file | ( | IxStreamFile * | streamFile | ) |
Definition at line 631 of file streamer.cpp.
References IxStreamFile::completionEvent, csStreamerFileList, dwIxStreamerStatus, IxStreamFile::file, ix_file_close(), IxStreamFile::ix_stream_file_wait(), ix_streamer_close_file(), IX_STREAMER_DEVELOPER_MODE, IxStreamFile::next, IxStreamFile::previous, and pStreamIdleFiles.
Referenced by ix_streamer_close_file(), and ix_streamer_close_stream_file().
Definition at line 297 of file streamer.cpp.
Definition at line 102 of file streamer.cpp.
Definition at line 81 of file streamer.cpp.
| IxStreamerFileEntry * ix_streamer_find_entry | ( | unsigned int | hash | ) |
Definition at line 540 of file streamer.cpp.
References IxStreamerHeader::fileEntryCount, ix_streamer_find_entry(), IxStreamerFileEntry::nameHash, pStreamerPackageInfo, and pStreamFileEntries.
Referenced by ix_streamer_find_entry(), and ix_streamer_open_file().
| void ix_streamer_force_trigger | ( | char | trigger | ) |
Definition at line 423 of file streamer.cpp.
| unsigned int ix_streamer_get_audio_chunk | ( | void | ) |
Definition at line 497 of file streamer.cpp.
References ix_streamer_get_audio_chunk(), and nStreamerAudioBlock.
Referenced by ix_streamer_get_audio_chunk().
| unsigned char ix_streamer_get_intensity | ( | void | ) |
Definition at line 396 of file streamer.cpp.
References bStreamerIntensityLevel, and ix_streamer_get_intensity().
Referenced by ix_streamer_get_intensity().
| char ix_streamer_get_trigger | ( | void | ) |
Definition at line 417 of file streamer.cpp.
| unsigned short ix_streamer_get_volume | ( | void | ) |
Definition at line 491 of file streamer.cpp.
| unsigned int ix_streamer_hash_name | ( | unsigned char * | name | ) |
Definition at line 518 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 51 of file streamer.cpp.
| IxStreamFile * ix_streamer_open_file | ( | unsigned char * | name, |
| unsigned char | priority ) |
Definition at line 564 of file streamer.cpp.
References IxStreamFile::completionEvent, csStreamerFileList, dwIxStreamerStatus, IxStreamFile::entry, IxStreamFile::file, IxStreamFile::flags, 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, pIxMalloc(), IxStreamFile::position, IxStreamFile::previous, IxStreamFile::priority, pStreamIdleFiles, IxStreamerFileEntry::size, and IxStreamFile::size.
Referenced by ix_streamer_open_file().
| int ix_streamer_open_stream_file | ( | char * | path | ) |
Definition at line 123 of file streamer.cpp.
| void ix_streamer_seek_chunk | ( | unsigned int | chunk | ) |
Definition at line 503 of file streamer.cpp.
References IxStreamerHeader::audioChunkCount, csStreamer, ix_streamer_seek_chunk(), nStreamerAudioBlock, and pStreamerPackageInfo.
Referenced by ix_streamer_audio_stop(), and ix_streamer_seek_chunk().
| unsigned int ix_streamer_service_audio | ( | void | ) |
Definition at line 97 of file thread.cpp.
References IxStreamerHeader::audioBufferSize, dwIxStreamerStatus, dwStreamBytesPerSecond, 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(), ix_thread_service_streams(), and pStreamerPackageInfo.
Referenced by ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_streamer_set_dev_mode | ( | int | mode | ) |
Definition at line 108 of file streamer.cpp.
References dwIxStreamerStatus, ix_log_printf(), IX_STREAMER_DEVELOPER_MODE, IX_STREAMER_FILE, ix_streamer_set_dev_mode(), pStreamIdleFiles, and pStreamReadRequests.
Referenced by ix_streamer_set_dev_mode().
| void ix_streamer_set_intensity | ( | unsigned char | intensity | ) |
Definition at line 386 of file streamer.cpp.
| void ix_streamer_set_trigger | ( | char | trigger | ) |
Definition at line 402 of file streamer.cpp.
| void ix_streamer_set_volume | ( | unsigned short | vol | ) |
Definition at line 475 of file streamer.cpp.
| DWORD WINAPI ix_streamer_thread_proc | ( | void * | parameter | ) |
Definition at line 22 of file thread.cpp.
References csIxStreamerThread, csStreamer, dwIxStreamerStatus, dwStreamThreadTick, hStreamerWakeupEvent, 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 234 of file system.cpp.
References IxSample::bitsPerSample, IxSample::buffer, IxSample::bytesPerFrame, IxSample::channels, IxSound::flags, IxSample::frequency, 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, nActiveVoices, 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 316 of file system.cpp.
References ix_dspv_get_flags(), ix_system_find_free_voice(), IX_VOICE_ACTIVE, and nSystemVoices.
Referenced by ix_sound_start(), and ix_system_find_free_voice().
Definition at line 284 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 300 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 ix_system_get_voice_count(), and nSystemVoices.
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 222 of file system.cpp.
References IxSound::flags, ix_dspv_clear_active(), IX_SOUND_HAS_VOICE, ix_system_release_voice(), nActiveVoices, 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 289 of file thread.cpp.
References adwStreamCallStack, IxStreamerBranch::audioChunk, IxStreamerTrigger::audioChunk, IxStreamerHeader::audioChunkCount, IxStreamerAudioChunk::branchCount, bStreamerIntensityLevel, cStreamerBranchTag, dwIxStreamerStatus, IxStreamerAudioChunk::firstBranch, IxStreamerAudioChunk::firstTrigger, IxStreamerBranch::intensity, ix_thread_advance_audio_chunk(), nStreamCallStackIndex, nStreamerAudioBlock, pMusicStreamBranchList, pStreamedMusicAudioChunks, pStreamerPackageInfo, pStreamTriggerList, 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 402 of file thread.cpp.
References IxStreamerAudioChunk::fileEnd, IxStreamerAudioChunk::fileOffset, ix_thread_get_audio_chunk_size(), nStreamerAudioBlock, and pStreamedMusicAudioChunks.
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 125 of file thread.cpp.
References IxStreamerFileEntry::chunkCount, IxStreamFile::completionEvent, csStreamerFileList, IxStreamFile::destination, dwIxStreamerStatus, dwStreamThreadTick, IxStreamFile::entry, IxStreamFile::file, IxStreamerFileChunk::fileEnd, IxStreamerFileChunk::fileOffset, IxStreamerFileEntry::firstChunk, IxStreamerFileChunk::firstPacket, IxStreamFile::flags, 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, nIxStreamerCurrentFileChunk, IxStreamerFileChunk::packedSize, IxStreamerFileChunk::packetCount, pIxStreamerInputBuffer, IxStreamFile::position, IxStreamFile::previous, pStreamerLzoBuffer, pStreamerPacketOffsetTable, pStreamerPackFile, pStreamFileBlocks, pStreamIdleFiles, pStreamReadRequests, IxStreamFile::remaining, and IxStreamFile::serviceTick.
Referenced by ix_thread_handle_file_chunk(), and ix_thread_service_streams().
Definition at line 372 of file thread.cpp.
References IxStreamerAudioChunk::fileOffset, 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(), ix_thread_lock_stream_buffer(), nStreamerAudioBlock, pStreamedMusicAudioChunks, and pStreamerPackFile.
Referenced by ix_streamer_service_audio(), and ix_thread_lock_stream_buffer().
| unsigned int ix_thread_service_streams | ( | void | ) |
Definition at line 245 of file thread.cpp.
References csStreamerFileList, dwIxStreamerStatus, dwStreamBytesPerSecond, ix_dsps_get_buffer_free(), ix_thread_get_audio_chunk_size(), ix_thread_handle_file_chunk(), ix_thread_service_streams(), IxStreamFile::previous, IxStreamFile::priority, pStreamReadRequests, and IxStreamFile::serviceTick.
Referenced by ix_streamer_service_audio(), ix_streamer_thread_proc(), and ix_thread_service_streams().
|
extern |
References pIxMalloc().
|
extern |
References asPanGains, csMixer, nMasterVolume, and void().
|
extern |
Definition at line 23 of file streamer.cpp.
Referenced by ix_streamer_force_trigger(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 30 of file dsp.cpp.
Referenced by ix_dsp_build_pan_tables(), IxVoice::ix_dspv_recalc_mix, and void().
|
extern |
Definition at line 19 of file dspv.cpp.
Referenced by IxVoice::ix_dsp_set_master_volume, IxVoice::ix_dsps_alloc, IxVoice::ix_dsps_get_buffer_free, IxVoice::ix_dsps_play, IxVoice::ix_dsps_prepare, IxVoice::ix_dsps_set_volume, IxVoice::ix_dsps_stop, IxVoice::ix_dspv_clear_active, IxVoice::ix_dspv_clear_flag4, IxVoice::ix_dspv_get_flags, IxVoice::ix_dspv_get_position, IxVoice::ix_dspv_recalc_mix, IxVoice::ix_dspv_set_active, IxVoice::ix_dspv_set_bits_per_sample, IxVoice::ix_dspv_set_channels, IxVoice::ix_dspv_set_flag4, IxVoice::ix_dspv_set_frequency, IxVoice::ix_dspv_set_pan, ix_dspv_set_position(), IxVoice::ix_dspv_set_position, and IxVoice::ix_dspv_set_volume.
|
extern |
Definition at line 28 of file streamer.cpp.
Referenced by ix_streamer_get_intensity(), ix_streamer_set_intensity(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 36 of file streamer.cpp.
Referenced by ix_streamer_destroy(), ix_streamer_init(), and ix_streamer_thread_proc().
|
extern |
Definition at line 20 of file dspv.cpp.
Referenced by ix_dsp_init(), ix_dsp_shutdown(), ix_dspv_recalc_mix(), IxVoice::ix_dspv_recalc_mix, ix_dspv_set_pan(), ix_mixer_service(), and void().
|
extern |
Definition at line 43 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 35 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 47 of file streamer.cpp.
Referenced by ix_streamer_get_trigger(), ix_streamer_set_trigger(), and ix_thread_advance_audio_chunk().
|
extern |
Definition at line 26 of file streamer.cpp.
Referenced by ix_streamer_open_stream_file().
|
extern |
Definition at line 38 of file streamer.cpp.
Referenced by ix_streamer_init().
|
extern |
Definition at line 14 of file system.cpp.
Referenced by ix_system_init(), and ix_system_shutdown().
|
extern |
Definition at line 42 of file streamer.cpp.
Referenced by ix_streamer_open_stream_file(), ix_streamer_service_audio(), and ix_thread_service_streams().
|
extern |
Definition at line 18 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 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 29 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 18 of file dsps.cpp.
Referenced by ix_dsp_set_stream_count(), ix_dsp_set_voice_count(), IxVoice::ix_dsps_alloc, and ix_dsps_prepare().
|
extern |
Definition at line 41 of file streamer.cpp.
Referenced by ix_streamer_open_stream_file(), and ix_thread_handle_file_chunk().
|
extern |
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().
|
extern |
Definition at line 48 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 17 of file dsps.cpp.
Referenced by ix_dsp_get_stream_count(), ix_dsp_init(), ix_dsp_set_stream_count(), IxVoice::ix_dsps_alloc, IxStream::ix_dsps_free, IxVoice::ix_dsps_get_buffer_free, ix_dsps_get_flags(), IxStream::ix_dsps_get_flags, IxVoice::ix_dsps_play, IxVoice::ix_dsps_prepare, IxVoice::ix_dsps_set_volume, IxVoice::ix_dsps_stop, and IxStream::ix_dsps_unlock.
|
extern |
Definition at line 37 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 46 of file streamer.cpp.
Referenced by ix_streamer_get_volume(), ix_streamer_open_stream_file(), and ix_streamer_set_volume().
|
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(), IxVoice::ix_dsp_set_master_volume, ix_dsp_set_voice_count(), IxVoice::ix_dsps_alloc, IxVoice::ix_dsps_get_buffer_free, IxVoice::ix_dsps_play, IxVoice::ix_dsps_prepare, IxVoice::ix_dsps_set_volume, IxVoice::ix_dsps_stop, IxVoice::ix_dspv_clear_active, ix_dspv_clear_flag4(), IxVoice::ix_dspv_clear_flag4, IxVoice::ix_dspv_get_flags, IxVoice::ix_dspv_get_position, IxVoice::ix_dspv_set_active, IxVoice::ix_dspv_set_bits_per_sample, IxVoice::ix_dspv_set_channels, IxVoice::ix_dspv_set_frequency, IxVoice::ix_dspv_set_pan, IxVoice::ix_dspv_set_position, and IxVoice::ix_dspv_set_volume.
|
extern |
Definition at line 22 of file dspv.cpp.
Referenced by ix_dsp_set_stream_count(), and ix_dsp_set_voice_count().
|
extern |
Definition at line 15 of file system.cpp.
Referenced by ix_sound_start(), ix_sound_stop(), ix_sound_unlink_from_free_list(), ix_system_delete_all_sounds(), ix_system_init(), and IxSound::ix_system_sound_init().
|
extern |
Definition at line 27 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 33 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 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 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 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 32 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 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 31 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().
|
extern |
Definition at line 17 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 21 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 34 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 30 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 22 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 25 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 44 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 19 of file dsps.cpp.
Referenced by ix_dsps_alloc(), IxVoice::ix_dsps_alloc, IxStream::ix_dsps_free, IxVoice::ix_dsps_get_buffer_free, IxStream::ix_dsps_get_flags, ix_dsps_play(), IxVoice::ix_dsps_play, IxVoice::ix_dsps_prepare, IxVoice::ix_dsps_set_volume, IxVoice::ix_dsps_stop, and IxStream::ix_dsps_unlock.