Wing Commander II
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
dspv.cpp File Reference

DirectSound voices, sample playback and voice parameters. More...

#include "ix.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>

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

Detailed Description

DirectSound voices, sample playback and voice parameters.

Definition in file dspv.cpp.

Function Documentation

◆ ix_dspv_clear_active()

void ix_dspv_clear_active ( int voice)

◆ ix_dspv_clear_flag4()

void ix_dspv_clear_flag4 ( int voice)

◆ ix_dspv_get_flags()

unsigned int ix_dspv_get_flags ( int voice)

◆ ix_dspv_get_position()

int ix_dspv_get_position ( int voice)

◆ ix_dspv_recalc_mix()

◆ ix_dspv_set_active()

void ix_dspv_set_active ( int voice)

◆ ix_dspv_set_bits_per_sample()

void ix_dspv_set_bits_per_sample ( int voice,
int bps )

◆ ix_dspv_set_buffer()

void ix_dspv_set_buffer ( int voice,
unsigned char * buffer,
int length )

◆ ix_dspv_set_channels()

void ix_dspv_set_channels ( int voice,
int channels )

◆ ix_dspv_set_flag4()

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().

◆ ix_dspv_set_frequency()

void ix_dspv_set_frequency ( int voice,
unsigned int hz )

◆ ix_dspv_set_pan()

void ix_dspv_set_pan ( int voice,
unsigned short angle )

◆ ix_dspv_set_position()

void ix_dspv_set_position ( int voice,
int offset )

◆ ix_dspv_set_volume()

void ix_dspv_set_volume ( int voice,
short volume )

Variable Documentation

◆ g_2_voices

◆ g_7_csMixer

CRITICAL_SECTION g_7_csMixer

◆ g_nVoiceCapacity

◆ g_nVoicesReserved

int g_nVoicesReserved

Definition at line 249 of file dspv.cpp.

Referenced by ix_dsp_set_stream_count(), and ix_dsp_set_voice_count().