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

#include <game.h>

Public Member Functions

void ix_system_sound_set_volume (unsigned short volume)
void ix_system_sound_set_pan (unsigned short pan)
void ix_sound_set_delete_on_stop (int enabled)
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_sound_unlink_from_free_list (void)
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 137 of file game.h.

Member Function Documentation

◆ ix_sound_reprioritise()

◆ ix_sound_set_delete_on_stop() [1/2]

void IxSound::ix_sound_set_delete_on_stop ( int enabled)

Definition at line 352 of file sound.cpp.

References flags, and IX_SOUND_DELETE_ON_STOP.

Referenced by PlayRawSpeechBuffer(), and playWAVE().

◆ ix_sound_set_delete_on_stop() [2/2]

void IxSound::ix_sound_set_delete_on_stop ( int enabled)

◆ ix_sound_unlink_from_free_list()

void IxSound::ix_sound_unlink_from_free_list ( void )

Definition at line 57 of file sound.cpp.

References flags, g_1_pFreeSoundHead, IX_SOUND_ALLOCATED, next, and previous.

Referenced by ix_system_delete_sound().

◆ ix_system_sound_construct()

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

Definition at line 44 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 51 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() [1/2]

void IxSound::ix_system_sound_set_pan ( unsigned short newPan)

◆ ix_system_sound_set_pan() [2/2]

void IxSound::ix_system_sound_set_pan ( unsigned short pan)

Definition at line 77 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 96 of file sound.cpp.

References basePriority, and ix_sound_reprioritise().

Referenced by ix_system_sound_set_pan().

◆ ix_system_sound_set_volume() [1/2]

void IxSound::ix_system_sound_set_volume ( unsigned short newVolume)

◆ ix_system_sound_set_volume() [2/2]

void IxSound::ix_system_sound_set_volume ( unsigned short volume)

Field Documentation

◆ basePriority

unsigned char IxSound::basePriority

Definition at line 121 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 115 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 116 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: