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

Sound-system state and voice allocation. More...

#include "ix.h"
#include <assert.h>
#include <limits.h>

Go to the source code of this file.

Macros

#define IX_SYSTEM_FILE   "D:\\Rnd\\prj\\ix\\src\\sound\\system.cpp"

Functions

int ix_system_init (void)
void ix_system_service_sounds (void)
void ix_system_shutdown (void)
void ix_system_configure (int option, void *value)
unsigned short ix_system_get_master_volume (void)
void ix_system_set_master_volume (unsigned short volume)
int ix_system_get_voice_count (void)
void ix_system_set_voice_count (int voiceCount)
IxSample * ix_system_new_sample (void)
void ix_system_delete_sample (IxSample *sample)
void ix_system_delete_all_samples (void)
IxSound * ix_system_new_sound (IxSample *sample)
void ix_system_delete_sound (IxSound *sound)
void ix_system_delete_all_sounds (void)
int ix_system_release_voice (IxSound *sound)
void ix_system_assign_voice (IxSound *sound, int voice)
IxSound * ix_system_find_highest_waiting (IxSound *sound, unsigned int minimumPriority)
IxSound * ix_system_find_lowest_playing (IxSound *sound, unsigned int maximumPriority)
int ix_system_find_free_voice (void)

Variables

unsigned int dwSoundStateFlags
IxSound * pIdleSoundList
IxSample * pSamples
int nActiveVoices
int nSystemVoices
IxSound * pPlayingSoundList
IxSound * pQueuedSoundList

Detailed Description

Sound-system state and voice allocation.

Originally D:\Rnd\prj\ix\src\sound\system.cpp, address range 447200-447a1f. The assert paths identify the source; linker INT3 fill marks the object boundaries.

Definition in file system.cpp.

Macro Definition Documentation

◆ IX_SYSTEM_FILE

#define IX_SYSTEM_FILE   "D:\\Rnd\\prj\\ix\\src\\sound\\system.cpp"

Definition at line 22 of file system.cpp.

Referenced by ix_system_init(), and ix_system_set_voice_count().

Function Documentation

◆ ix_system_assign_voice()

◆ ix_system_configure()

void ix_system_configure ( int option,
void * value )

◆ ix_system_delete_all_samples()

◆ ix_system_delete_all_sounds()

◆ ix_system_delete_sample()

void ix_system_delete_sample ( IxSample * sample)

◆ ix_system_delete_sound()

◆ ix_system_find_free_voice()

int ix_system_find_free_voice ( void )

◆ ix_system_find_highest_waiting()

IxSound * ix_system_find_highest_waiting ( IxSound * sound,
unsigned int minimumPriority )

◆ ix_system_find_lowest_playing()

IxSound * ix_system_find_lowest_playing ( IxSound * sound,
unsigned int maximumPriority )

◆ ix_system_get_master_volume()

unsigned short ix_system_get_master_volume ( void )

Definition at line 110 of file system.cpp.

References ix_dsp_get_master_volume(), and ix_system_get_master_volume().

Referenced by ix_system_get_master_volume().

◆ ix_system_get_voice_count()

int ix_system_get_voice_count ( void )

Definition at line 122 of file system.cpp.

References ix_system_get_voice_count(), and nSystemVoices.

Referenced by ix_system_get_voice_count().

◆ ix_system_init()

◆ ix_system_new_sample()

◆ ix_system_new_sound()

◆ ix_system_release_voice()

◆ ix_system_service_sounds()

◆ ix_system_set_master_volume()

void ix_system_set_master_volume ( unsigned short volume)

◆ ix_system_set_voice_count()

◆ ix_system_shutdown()

Variable Documentation

◆ dwSoundStateFlags

unsigned int dwSoundStateFlags

Definition at line 14 of file system.cpp.

Referenced by ix_system_init(), and ix_system_shutdown().

◆ nActiveVoices

◆ nSystemVoices

◆ pIdleSoundList

◆ pPlayingSoundList

◆ pQueuedSoundList

◆ pSamples