|
Wing Commander II
Reconstructed Win32 source (1996)
|
DirectSound streaming ring buffers. More...
Go to the source code of this file.
Functions | |
| void | ix_dsps_prepare (int stream) |
| void | ix_dsps_play (int stream) |
| void | ix_dsps_stop (int stream) |
| void | ix_dsps_set_volume (int stream, unsigned short volume) |
| int | ix_dsps_get_buffer_free (int stream) |
| void | ix_dsps_unlock (int stream) |
| void | ix_dsps_alloc (int stream, unsigned int size, int freq, int bps, int channels) |
| void | ix_dsps_free (int stream) |
| void | ix_dsps_lock (int stream, unsigned int requestedBytes, unsigned char **buffer, unsigned int *lockedBytes) |
| unsigned int | ix_dsps_get_flags (int stream) |
Variables | |
| int | g_3_nStreamCount |
| int | g_nStreamsTaken |
| IxStream | g_1_streams [2] |
DirectSound streaming ring buffers.
Definition in file dsps.cpp.
| void ix_dsps_alloc | ( | int | stream, |
| unsigned int | size, | ||
| int | freq, | ||
| int | bps, | ||
| int | channels ) |
Definition at line 30 of file dsps.cpp.
References IxStream::buffer, IxVoice::cursor, IxVoice::end, IxVoice::field_10, IxStream::flags, IxVoice::flags, g_1_streams, g_2_voices, g_3_nStreamCount, g_nStreamsTaken, g_nVoiceCapacity, ix_dsps_alloc(), IX_DSPS_FILE, ix_log_printf(), IX_MIXER_BASE_RATE, IX_STREAM_ALLOCATED, IX_STREAM_PLAYING, IX_VOICE_16BIT, IX_VOICE_FLAG4, IX_VOICE_STEREO, IxVoice::leftGain, IxVoice::leftGainHi, IxStream::pending, IxStream::playPos, IxVoice::rate, IxVoice::rightGain, IxVoice::rightGainHi, IxStream::size, IxVoice::start, IxVoice::volume, and IxStream::writePos.
Referenced by ix_dsps_alloc(), and ix_streamer_open_stream_file().
| void ix_dsps_free | ( | int | stream | ) |
Definition at line 88 of file dsps.cpp.
References IxStream::buffer, IxStream::flags, g_1_streams, g_3_nStreamCount, g_nStreamsTaken, IX_DSPS_FILE, ix_dsps_free(), ix_dsps_stop(), ix_log_printf(), IX_STREAM_ALLOCATED, and IX_STREAM_PLAYING.
Referenced by ix_dsps_free(), and ix_streamer_close_stream_file().
| int ix_dsps_get_buffer_free | ( | int | stream | ) |
Definition at line 223 of file dsps.cpp.
References IxStream::buffer, IxVoice::cursor, g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_get_buffer_free(), ix_log_printf(), IX_STREAM_ALLOCATED, IxStream::pending, IxStream::playPos, and IxStream::size.
Referenced by ix_dsps_get_buffer_free(), ix_streamer_service_audio(), and ix_thread_service_streams().
| unsigned int ix_dsps_get_flags | ( | int | stream | ) |
Definition at line 212 of file dsps.cpp.
References IxStream::flags, g_1_streams, g_3_nStreamCount, IX_DSPS_FILE, ix_dsps_get_flags(), and ix_log_printf().
Referenced by ix_dsps_get_flags().
| void ix_dsps_lock | ( | int | stream, |
| unsigned int | requestedBytes, | ||
| unsigned char ** | buffer, | ||
| unsigned int * | lockedBytes ) |
Definition at line 265 of file dsps.cpp.
References IxStream::buffer, IxStream::flags, g_1_streams, g_3_nStreamCount, IX_DSPS_FILE, ix_dsps_lock(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_LOCKED, IxStream::lockLen, IxStream::lockPtr, IxStream::size, and IxStream::writePos.
Referenced by ix_dsps_lock(), and ix_thread_lock_stream_buffer().
| void ix_dsps_play | ( | int | stream | ) |
Definition at line 134 of file dsps.cpp.
References IxStream::buffer, IxVoice::cursor, IxStream::flags, IxVoice::flags, g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_play(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_PLAYING, IX_VOICE_ACTIVE, and IxStream::playPos.
Referenced by ix_dsps_play(), ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_prepare | ( | int | stream | ) |
Definition at line 109 of file dsps.cpp.
References IxStream::buffer, IxVoice::cursor, g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_prepare(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_PLAYING, IxStream::pending, IxStream::playPos, and IxStream::writePos.
Referenced by ix_dsps_prepare(), ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_set_volume | ( | int | stream, |
| unsigned short | volume ) |
Definition at line 188 of file dsps.cpp.
References g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_set_volume(), ix_log_printf(), IX_STREAM_ALLOCATED, IxVoice::leftGain, IxVoice::leftGainHi, IxVoice::rightGain, IxVoice::rightGainHi, and IxVoice::volume.
Referenced by ix_dsps_set_volume(), ix_streamer_open_stream_file(), and ix_streamer_set_volume().
| void ix_dsps_stop | ( | int | stream | ) |
Definition at line 161 of file dsps.cpp.
References IxStream::flags, IxVoice::flags, g_1_streams, g_2_voices, g_3_nStreamCount, g_nVoiceCapacity, IX_DSPS_FILE, ix_dsps_stop(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_PLAYING, and IX_VOICE_ACTIVE.
Referenced by ix_dsps_free(), ix_dsps_stop(), ix_streamer_force_trigger(), ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_unlock | ( | int | stream | ) |
Definition at line 296 of file dsps.cpp.
References IxStream::flags, g_1_streams, g_3_nStreamCount, IX_DSPS_FILE, ix_dsps_unlock(), ix_log_printf(), IX_STREAM_ALLOCATED, IX_STREAM_LOCKED, IxStream::lockLen, IxStream::pending, IxStream::size, and IxStream::writePos.
Referenced by ix_dsps_unlock(), and ix_thread_lock_stream_buffer().
| IxStream g_1_streams[2] |
Definition at line 17 of file dsps.cpp.
Referenced by ix_dsps_alloc(), ix_dsps_free(), ix_dsps_get_buffer_free(), ix_dsps_get_flags(), ix_dsps_lock(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_set_volume(), ix_dsps_stop(), and ix_dsps_unlock().
| int g_3_nStreamCount |
Definition at line 15 of file dsps.cpp.
Referenced by ix_dsp_get_stream_count(), ix_dsp_init(), ix_dsp_set_stream_count(), ix_dsps_alloc(), ix_dsps_free(), ix_dsps_get_buffer_free(), ix_dsps_get_flags(), ix_dsps_lock(), ix_dsps_play(), ix_dsps_prepare(), ix_dsps_set_volume(), ix_dsps_stop(), and ix_dsps_unlock().
| int g_nStreamsTaken |
Definition at line 16 of file dsps.cpp.
Referenced by ix_dsp_set_stream_count(), ix_dsp_set_voice_count(), ix_dsps_alloc(), and ix_dsps_free().