|
Wing Commander II
Reconstructed Win32 source (1996)
|
DirectSound voices, sample playback and voice parameters. More...
Go to the source code of this file.
Functions | |
| void | ix_dspv_set_buffer (int voice, unsigned char *buffer, int length) |
| void | ix_dspv_set_position (int voice, int offset) |
| void | ix_dspv_set_volume (int voice, short volume) |
| void | ix_dspv_set_active (int voice) |
| void | ix_dspv_clear_active (int voice) |
| unsigned int | ix_dspv_get_flags (int voice) |
| void | ix_dspv_clear_flag4 (int voice) |
| void | ix_dspv_set_flag4 (int voice, int on) |
| int | ix_dspv_get_position (int voice) |
| void | ix_dspv_recalc_mix (int voice) |
| void | ix_dspv_set_pan (int voice, unsigned short angle) |
| void | ix_dspv_set_frequency (int voice, unsigned int hz) |
| void | ix_dspv_set_bits_per_sample (int voice, int bps) |
| void | ix_dspv_set_channels (int voice, int channels) |
Variables | |
| IxVoice | g_2_voices [34] |
| CRITICAL_SECTION | g_7_csMixer |
| int | g_nVoiceCapacity |
| int | g_nVoicesReserved |
DirectSound voices, sample playback and voice parameters.
Definition in file dspv.cpp.
| 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().
| 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 * | buffer, | ||
| int | length ) |
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 | channels ) |
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 | angle ) |
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 | offset ) |
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 | volume ) |
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().
| IxVoice g_2_voices[34] |
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().
| CRITICAL_SECTION g_7_csMixer |
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().
| int g_nVoiceCapacity |
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().
| int g_nVoicesReserved |
Definition at line 249 of file dspv.cpp.
Referenced by ix_dsp_set_stream_count(), and ix_dsp_set_voice_count().