|
Wing Commander
Reconstructed Win32 source (1996)
|
Sound-system state and voice allocation. More...
Go to the source code of this file.
Macros | |
| #define | IX_SYSTEM_FILE "D:\\Rnd\\prj\\ix\\src\\sound\\system.cpp" |
Functions | |
| int | ix_system_init (void) |
| void | ix_system_service_sounds (void) |
| void | ix_system_shutdown (void) |
| void | ix_system_configure (int option, void *value) |
| unsigned short | ix_system_get_master_volume (void) |
| void | ix_system_set_master_volume (unsigned short volume) |
| int | ix_system_get_voice_count (void) |
| void | ix_system_set_voice_count (int voiceCount) |
| IxSample * | ix_system_new_sample (void) |
| void | ix_system_delete_sample (IxSample *sample) |
| void | ix_system_delete_all_samples (void) |
| IxSound * | ix_system_new_sound (IxSample *sample) |
| void | ix_system_delete_sound (IxSound *sound) |
| void | ix_system_delete_all_sounds (void) |
| int | ix_system_release_voice (IxSound *sound) |
| void | ix_system_assign_voice (IxSound *sound, int voice) |
| IxSound * | ix_system_find_highest_waiting (IxSound *sound, unsigned int minimumPriority) |
| IxSound * | ix_system_find_lowest_playing (IxSound *sound, unsigned int maximumPriority) |
| int | ix_system_find_free_voice (void) |
Variables | |
| unsigned int | dwSoundStateFlags |
| IxSound * | pIdleSoundList |
| IxSample * | pSamples |
| int | nActiveVoices |
| int | nSystemVoices |
| IxSound * | pPlayingSoundList |
| IxSound * | pQueuedSoundList |
Sound-system state and voice allocation.
Originally D:\Rnd\prj\ix\src\sound\system.cpp, address range 447200-447a1f. The assert paths identify the source; linker INT3 fill marks the object boundaries.
Definition in file system.cpp.
| #define IX_SYSTEM_FILE "D:\\Rnd\\prj\\ix\\src\\sound\\system.cpp" |
Definition at line 22 of file system.cpp.
Referenced by ix_system_init(), and ix_system_set_voice_count().
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.
References ix_dsp_configure(), and ix_system_configure().
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_configure().
Definition at line 159 of file system.cpp.
References ix_system_delete_all_samples(), ix_system_delete_sample(), IxSample::next, and pSamples.
Referenced by CollectRasterClipColours(), ix_system_delete_all_samples(), ix_system_shutdown(), ServiceAudioStream(), and stop_all_sounds().
Definition at line 197 of file system.cpp.
References ix_system_delete_all_sounds(), ix_system_delete_sound(), IxSound::next, pIdleSoundList, pPlayingSoundList, and pQueuedSoundList.
Referenced by CollectRasterClipColours(), ix_system_delete_all_sounds(), ix_system_shutdown(), ServiceAudioStream(), and stop_all_sounds().
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.
References IxSound::flags, IX_SOUND_DELETE_ON_STOP, IX_SOUND_PLAYING, ix_sound_stop(), ix_sound_unlink_from_free_list(), and ix_system_delete_sound().
Referenced by CollectRasterClipColours(), ix_sound_stop(), ix_system_delete_all_sounds(), ix_system_delete_sound(), ReleaseFinishedSoundEntries(), and StopSoundsUsingWave().
| 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.
References dwSoundStateFlags, ix_dsp_get_voice_count(), ix_dsp_init(), ix_log_printf(), IX_SYSTEM_FILE, ix_system_init(), ix_system_set_master_volume(), nActiveVoices, nSystemVoices, pIdleSoundList, pPlayingSoundList, pQueuedSoundList, and pSamples.
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_init().
Definition at line 139 of file system.cpp.
References IxSample::ix_sample_construct(), ix_system_new_sample(), and pIxMalloc().
Referenced by CollectRasterClipColours(), ix_system_new_sample(), PlaySnowStaticSound(), and playWAVE().
Definition at line 173 of file system.cpp.
References ix_system_new_sound(), IxSound::ix_system_sound_construct_centred(), and pIxMalloc().
Referenced by CollectRasterClipColours(), ix_system_new_sound(), PlaySnowStaticSound(), and playWAVE().
| 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.
References IxSound::flags, IxSample::frequency, ix_dsp_get_tick(), ix_dspv_get_flags(), ix_dspv_set_frequency(), ix_dspv_set_pan(), ix_dspv_set_volume(), IX_SOUND_FREQUENCY_DIRTY, IX_SOUND_PAN_DIRTY, ix_sound_stop(), IX_SOUND_VOLUME_DIRTY, ix_system_service_sounds(), IX_VOICE_ACTIVE, IxSound::next, IxSound::pan, IxSound::pitchOffset, pPlayingSoundList, pQueuedSoundList, IxSound::sample, IxSound::stopTime, IxSound::voice, and IxSound::volume.
Referenced by CollectRasterClipColours(), ix_system_service_sounds(), and ServiceSoundSystem().
| void ix_system_set_master_volume | ( | unsigned short | volume | ) |
Definition at line 116 of file system.cpp.
References ix_dsp_set_master_volume(), and ix_system_set_master_volume().
Referenced by CollectRasterClipColours(), ix_system_init(), ix_system_set_master_volume(), and SetSoundEffectsVolume().
| void ix_system_set_voice_count | ( | int | voiceCount | ) |
Definition at line 128 of file system.cpp.
References ix_dsp_get_voice_count(), ix_dsp_set_voice_count(), ix_log_printf(), IX_SYSTEM_FILE, ix_system_set_voice_count(), nActiveVoices, and nSystemVoices.
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_set_voice_count().
Definition at line 93 of file system.cpp.
References dwSoundStateFlags, ix_dsp_shutdown(), ix_system_delete_all_samples(), ix_system_delete_all_sounds(), and ix_system_shutdown().
Referenced by CollectRasterClipColours(), ix_system_shutdown(), and ServiceAudioStream().
| unsigned int dwSoundStateFlags |
Definition at line 14 of file system.cpp.
Referenced by ix_system_init(), and ix_system_shutdown().
| int nActiveVoices |
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().
| int nSystemVoices |
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().
| IxSound* pIdleSoundList |
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().
| IxSound* pPlayingSoundList |
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().
| IxSound* pQueuedSoundList |
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().
| IxSample* pSamples |
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().