|
Wing Commander
Reconstructed Win32 source (1996)
|
Voice control. More...
Go to the source code of this file.
Functions | |
| void | ix_dspv_set_active (int voice) |
| void | ix_dspv_clear_active (int voice) |
| void | ix_dspv_clear_flag4 (int voice) |
| unsigned int | ix_dspv_get_flags (int voice) |
| void | ix_dspv_set_flag4 (int voice, int on) |
| void | ix_dspv_set_buffer (int voice, unsigned char *p, int len) |
| int | ix_dspv_get_position (int voice) |
| void | ix_dspv_set_position (int voice, int off) |
| void | ix_dspv_set_volume (int voice, short vol) |
| 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) |
| void | ix_dspv_recalc_mix (int voice) |
Variables | |
| IxVoice | aVoices [34] |
| CRITICAL_SECTION | csMixer |
| int | nVoiceCount |
| int | nVoicesAllocated |
Voice control.
Originally D:\rnd\prj\ix\win95\dsp\dspv.cpp, address range 4467a0-446f73: compiler-generated initializers, then the voice-control functions. The separately assembled sample mixer, dspmix.asm, follows.
Built /Od like the rest of ix: a full EBP frame, EBX, ESI and EDI saved whether used or not, and one shared epilogue.
Definition in file dspv.cpp.
| void ix_dspv_clear_active | ( | int | voice | ) |
Definition at line 36 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 58 of file dspv.cpp.
References IX_DSPV_FILE, and ix_log_printf().
Referenced by ix_system_find_free_voice(), and ix_system_service_sounds().
| void ix_dspv_set_active | ( | int | voice | ) |
Definition at line 25 of file dspv.cpp.
Referenced by ix_system_assign_voice().
| void ix_dspv_set_bits_per_sample | ( | int | voice, |
| int | bps ) |
Definition at line 182 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 79 of file dspv.cpp.
Referenced by ix_system_assign_voice().
| void ix_dspv_set_channels | ( | int | voice, |
| int | channels ) |
Definition at line 201 of file dspv.cpp.
Referenced by ix_system_assign_voice().
| void ix_dspv_set_flag4 | ( | int | voice, |
| int | on ) |
Definition at line 70 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 170 of file dspv.cpp.
Referenced by ix_system_assign_voice(), and ix_system_service_sounds().
| void ix_dspv_set_pan | ( | int | voice, |
| unsigned short | angle ) |
Definition at line 134 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 ) |
Definition at line 109 of file dspv.cpp.
References aVoices.
Referenced by ix_system_assign_voice().
| void ix_dspv_set_volume | ( | int | voice, |
| short | vol ) |
Definition at line 122 of file dspv.cpp.
Referenced by ix_system_assign_voice(), and ix_system_service_sounds().
| IxVoice aVoices[34] |
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.
| CRITICAL_SECTION csMixer |
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().
| int nVoiceCount |
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.
| int nVoicesAllocated |
Definition at line 22 of file dspv.cpp.
Referenced by ix_dsp_set_stream_count(), and ix_dsp_set_voice_count().