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

Sound-system startup, master volume and voice allocation. More...

#include "ix.h"
#include <memory.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 g_dwIxSystemBits
IxSound * g_1_pFreeSoundHead
IxSample * g_7_pSampleList
int g_nActiveVoices
int g_nSystemVoiceCount
IxSound * g_1_pActiveSoundList
IxSound * g_1_pWaitingSoundList

Detailed Description

Sound-system startup, master volume and voice allocation.

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 g_nSystemVoiceCount, and ix_system_get_voice_count().

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

◆ g_1_pActiveSoundList

◆ g_1_pFreeSoundHead

◆ g_1_pWaitingSoundList

◆ g_7_pSampleList

◆ g_dwIxSystemBits

unsigned int g_dwIxSystemBits

Definition at line 14 of file system.cpp.

Referenced by ix_system_init(), and ix_system_shutdown().

◆ g_nActiveVoices

◆ g_nSystemVoiceCount