Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
IxSound Struct Reference

#include <wc1base.h>

Public Member Functions

void ix_system_sound_init (IxSample *newSample, unsigned char newBasePriority, unsigned int initialVolume, int newPitchOffset, unsigned short newPan)
void ix_system_sound_construct (IxSample *newSample, unsigned char newBasePriority)
void ix_system_sound_construct_centred (IxSample *newSample)
void ix_system_sound_set_volume (unsigned short newVolume)
void ix_system_sound_set_pan (unsigned short newPan)
void ix_system_sound_set_frequency (int newPitchOffset)
void ix_system_sound_set_priority (unsigned char newBasePriority)
void ix_sound_reprioritise (void)
void ix_sound_set_delete_on_stop (int enabled)

Data Fields

unsigned int flags
IxSample * sample
int voice
unsigned int startTime
unsigned int stopTime
unsigned int priority
int pitchOffset
unsigned short volume
unsigned short pan
unsigned char basePriority
IxSound * previous
IxSound * next

Detailed Description

Definition at line 61 of file wc1base.h.

Member Function Documentation

◆ ix_sound_reprioritise()

◆ ix_sound_set_delete_on_stop()

void IxSound::ix_sound_set_delete_on_stop ( int enabled)

Definition at line 346 of file sound.cpp.

References flags, and IX_SOUND_DELETE_ON_STOP.

Referenced by playWAVE().

◆ ix_system_sound_construct()

void IxSound::ix_system_sound_construct ( IxSample * newSample,
unsigned char newBasePriority )

Definition at line 43 of file sound.cpp.

References ix_system_sound_init().

◆ ix_system_sound_construct_centred()

void IxSound::ix_system_sound_construct_centred ( IxSample * newSample)

Definition at line 50 of file sound.cpp.

References ix_system_sound_init().

Referenced by ix_system_new_sound().

◆ ix_system_sound_init()

void IxSound::ix_system_sound_init ( IxSample * newSample,
unsigned char newBasePriority,
unsigned int initialVolume,
int newPitchOffset,
unsigned short newPan )

◆ ix_system_sound_set_frequency()

void IxSound::ix_system_sound_set_frequency ( int newPitchOffset)

◆ ix_system_sound_set_pan()

void IxSound::ix_system_sound_set_pan ( unsigned short newPan)

Definition at line 76 of file sound.cpp.

References flags, IX_SOUND_PAN_DIRTY, and pan.

◆ ix_system_sound_set_priority()

void IxSound::ix_system_sound_set_priority ( unsigned char newBasePriority)

Definition at line 95 of file sound.cpp.

References basePriority, and ix_sound_reprioritise().

◆ ix_system_sound_set_volume()

void IxSound::ix_system_sound_set_volume ( unsigned short newVolume)

Definition at line 68 of file sound.cpp.

References flags, ix_sound_reprioritise(), IX_SOUND_VOLUME_DIRTY, and volume.

Referenced by PlaySnowStaticSound(), and playWAVE().

Field Documentation

◆ basePriority

unsigned char IxSound::basePriority

Definition at line 160 of file ix.h.

Referenced by ix_sound_reprioritise(), ix_system_sound_init(), and ix_system_sound_set_priority().

◆ flags

◆ next

◆ pan

unsigned short IxSound::pan

◆ pitchOffset

◆ previous

◆ priority

unsigned int IxSound::priority

◆ sample

◆ startTime

unsigned int IxSound::startTime

Definition at line 154 of file ix.h.

Referenced by ix_sound_start(), ix_system_assign_voice(), and ix_system_sound_init().

◆ stopTime

unsigned int IxSound::stopTime

Definition at line 155 of file ix.h.

Referenced by ix_sound_start(), ix_system_service_sounds(), and ix_system_sound_init().

◆ voice

◆ volume

unsigned short IxSound::volume

The documentation for this struct was generated from the following files: