|
Wing Commander II
Reconstructed Win32 source (1996)
|
Sound-system startup, master volume 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 | g_dwIxSystemBits |
| IxSound * | g_1_pFreeSoundHead |
| IxSample * | g_7_pSampleList |
| int | g_nActiveVoices |
| int | g_nSystemVoiceCount |
| IxSound * | g_1_pActiveSoundList |
| IxSound * | g_1_pWaitingSoundList |
Sound-system startup, master volume and voice allocation.
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 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.
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 g_7_pSampleList, ix_system_delete_all_samples(), ix_system_delete_sample(), and IxSample::next.
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 g_1_pActiveSoundList, g_1_pFreeSoundHead, g_1_pWaitingSoundList, ix_system_delete_all_sounds(), ix_system_delete_sound(), and IxSound::next.
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(), IxSound::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 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.
References g_1_pActiveSoundList, g_1_pFreeSoundHead, g_1_pWaitingSoundList, g_7_pSampleList, g_dwIxSystemBits, g_nActiveVoices, g_nSystemVoiceCount, ix_dsp_get_voice_count(), ix_dsp_init(), ix_log_printf(), IX_SYSTEM_FILE, ix_system_init(), and ix_system_set_master_volume().
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_init().
Definition at line 139 of file system.cpp.
References g_pIxMalloc(), IxSample::ix_sample_construct(), and ix_system_new_sample().
Referenced by CollectRasterClipColours(), ix_system_new_sample(), PlayRawSpeechBuffer(), PlaySnowStaticSound(), and playWAVE().
Definition at line 173 of file system.cpp.
References g_pIxMalloc(), ix_system_new_sound(), and IxSound::ix_system_sound_construct_centred().
Referenced by CollectRasterClipColours(), ix_system_new_sound(), PlayRawSpeechBuffer(), PlaySnowStaticSound(), and playWAVE().
| 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.
References IxSound::flags, IxSample::frequency, g_1_pActiveSoundList, g_1_pWaitingSoundList, 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, 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 g_nActiveVoices, g_nSystemVoiceCount, ix_dsp_get_voice_count(), ix_dsp_set_voice_count(), ix_log_printf(), IX_SYSTEM_FILE, and ix_system_set_voice_count().
Referenced by CollectRasterClipColours(), InitializeAudioSystem(), and ix_system_set_voice_count().
Definition at line 93 of file system.cpp.
References g_dwIxSystemBits, 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().
| IxSound* g_1_pActiveSoundList |
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* g_1_pFreeSoundHead |
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().
| IxSound* g_1_pWaitingSoundList |
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* g_7_pSampleList |
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().
| unsigned int g_dwIxSystemBits |
Definition at line 14 of file system.cpp.
Referenced by ix_system_init(), and ix_system_shutdown().
| int g_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 g_nSystemVoiceCount |
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().