|
Wing Commander
Reconstructed Win32 source (1996)
|
Sample stream control. More...
Go to the source code of this file.
Functions | |
| void | ix_dsps_alloc (int stream, unsigned int size, int freq, int bps, int channels) |
| void | ix_dsps_free (int stream) |
| 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 vol) |
| unsigned int | ix_dsps_get_flags (int stream) |
| int | ix_dsps_get_buffer_free (int streamIndex) |
| void | ix_dsps_lock (int stream, unsigned int requestedBytes, unsigned char **buffer, unsigned int *lockedBytes) |
| void | ix_dsps_unlock (int stream) |
Variables | |
| int | nStreamCount |
| int | nAllocatedStreams |
| IxStream | streams [2] |
Sample stream control.
Originally D:\rnd\prj\ix\win95\dsp\dsps.cpp, address range 445190-445f5f: compiler-generated initializers, then ten stream-control functions. Built /Od /Oi like the rest of ix.
A stream is a ring buffer fed by the streamer thread and played through a voice slot allocated after the regular voices: voice[voice_count + index].
Definition in file dsps.cpp.
| void ix_dsps_alloc | ( | int | stream, |
| unsigned int | size, | ||
| int | freq, | ||
| int | bps, | ||
| int | channels ) |
Definition at line 22 of file dsps.cpp.
References streams.
Referenced by ix_streamer_open_stream_file().
| void ix_dsps_free | ( | int | stream | ) |
Definition at line 80 of file dsps.cpp.
Referenced by ix_streamer_close_stream_file().
| int ix_dsps_get_buffer_free | ( | int | streamIndex | ) |
Definition at line 210 of file dsps.cpp.
Referenced by ix_streamer_service_audio(), and ix_thread_service_streams().
| unsigned int ix_dsps_get_flags | ( | int | stream | ) |
Definition at line 199 of file dsps.cpp.
References IX_DSPS_FILE, ix_log_printf(), and nStreamCount.
| void ix_dsps_lock | ( | int | stream, |
| unsigned int | requestedBytes, | ||
| unsigned char ** | buffer, | ||
| unsigned int * | lockedBytes ) |
Definition at line 246 of file dsps.cpp.
References ix_log_printf().
Referenced by ix_thread_lock_stream_buffer().
| void ix_dsps_play | ( | int | stream | ) |
Definition at line 126 of file dsps.cpp.
References IX_STREAM_ALLOCATED, and streams.
Referenced by ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_prepare | ( | int | stream | ) |
Definition at line 101 of file dsps.cpp.
References nAllocatedStreams.
Referenced by ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_set_volume | ( | int | stream, |
| unsigned short | vol ) |
Definition at line 175 of file dsps.cpp.
Referenced by ix_streamer_open_stream_file(), and ix_streamer_set_volume().
| void ix_dsps_stop | ( | int | stream | ) |
Definition at line 153 of file dsps.cpp.
Referenced by ix_streamer_force_trigger(), ix_streamer_service_audio(), and ix_streamer_thread_proc().
| void ix_dsps_unlock | ( | int | stream | ) |
Definition at line 277 of file dsps.cpp.
Referenced by ix_thread_lock_stream_buffer().
| int nAllocatedStreams |
Definition at line 18 of file dsps.cpp.
Referenced by ix_dsp_set_stream_count(), ix_dsp_set_voice_count(), IxVoice::ix_dsps_alloc, and ix_dsps_prepare().
| int nStreamCount |
Definition at line 17 of file dsps.cpp.
Referenced by ix_dsp_get_stream_count(), ix_dsp_init(), ix_dsp_set_stream_count(), IxVoice::ix_dsps_alloc, IxStream::ix_dsps_free, IxVoice::ix_dsps_get_buffer_free, ix_dsps_get_flags(), IxStream::ix_dsps_get_flags, IxVoice::ix_dsps_play, IxVoice::ix_dsps_prepare, IxVoice::ix_dsps_set_volume, IxVoice::ix_dsps_stop, and IxStream::ix_dsps_unlock.
| IxStream streams[2] |
Definition at line 19 of file dsps.cpp.
Referenced by ix_dsps_alloc(), IxVoice::ix_dsps_alloc, IxStream::ix_dsps_free, IxVoice::ix_dsps_get_buffer_free, IxStream::ix_dsps_get_flags, ix_dsps_play(), IxVoice::ix_dsps_play, IxVoice::ix_dsps_prepare, IxVoice::ix_dsps_set_volume, IxVoice::ix_dsps_stop, and IxStream::ix_dsps_unlock.