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

Audio classes, DirectSound interfaces and shared ix state. More...

#include <windows.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  IxVoice
struct  IxSample
struct  IxSound
struct  IxStream
struct  IxStreamerHeader
struct  IxStreamerFileEntry
struct  IxStreamerAudioChunk
struct  IxStreamerBranch
struct  IxStreamerTrigger
struct  IxStreamerFileChunk
struct  IxStreamFile

Macros

#define IX_MIXER_BASE_RATE   22050
#define IX_DSPV_FILE   "D:\\rnd\\prj\\ix\\win95\\dsp\\dspv.cpp"
#define IX_DSPS_FILE   "D:\\rnd\\prj\\ix\\win95\\dsp\\dsps.cpp"

Enumerations

enum  IxVoiceFlags { IX_VOICE_ACTIVE = 0x02 , IX_VOICE_FLAG4 = 0x04 , IX_VOICE_16BIT = 0x08 , IX_VOICE_STEREO = 0x10 }
enum  IxSampleFlags { IX_SAMPLE_READY = 0x00000001 , IX_SAMPLE_LOOPING = 0x00000002 , IX_SAMPLE_LOADING = 0x80000000 }
enum  IxSoundFlags {
  IX_SOUND_ALLOCATED = 0x001 , IX_SOUND_PLAYING = 0x002 , IX_SOUND_LOOPING = 0x004 , IX_SOUND_DELETE_ON_STOP = 0x008 ,
  IX_SOUND_HAS_VOICE = 0x010 , IX_SOUND_VOLUME_DIRTY = 0x020 , IX_SOUND_FREQUENCY_DIRTY = 0x040 , IX_SOUND_PAN_DIRTY = 0x080 ,
  IX_SOUND_RELEASE_PENDING = 0x100
}
enum  IxStreamFlags { IX_STREAM_ALLOCATED = 0x01 , IX_STREAM_PLAYING = 0x02 , IX_STREAM_LOCKED = 0x04 }
enum  IxStreamFileFlags { IX_STREAM_FILE_OPEN = 0x01 , IX_STREAM_FILE_READING = 0x02 }
enum  IxStreamerFlags {
  IX_STREAMER_INITIALIZED = 0x001 , IX_STREAMER_FILE_OPEN = 0x002 , IX_STREAMER_AUDIO_PLAYING = 0x004 , IX_STREAMER_AUDIO_PAUSED = 0x008 ,
  IX_STREAMER_THREAD_RUNNING = 0x010 , IX_STREAMER_DSP_PLAYING = 0x020 , IX_STREAMER_DSP_PAUSED = 0x040 , IX_STREAMER_HAS_AUDIO = 0x080 ,
  IX_STREAMER_DEVELOPER_MODE = 0x100 , IX_STREAMER_SHUTDOWN = 0x200 , IX_STREAMER_REPREPARE_AUDIO = 0x400 , IX_STREAMER_END_TRIGGERED = 0x800
}

Functions

void ix_log_printf (const char *fmt,...)
void *__cdecl * g_pIxMalloc (unsigned int)
 void (__cdecl *g_pIxFree)(void *)
void ix_dspv_set_active (int voice)
void ix_dspv_clear_active (int voice)
void ix_dspv_clear_flag4 (int voice)
unsigned int ix_dspv_get_flags (int voice)
void ix_dspv_set_buffer (int voice, unsigned char *p, int len)
int ix_dspv_get_position (int voice)
void ix_dspv_set_position (int voice, int off)
void ix_dspv_set_volume (int voice, short vol)
void ix_dspv_set_pan (int voice, unsigned short a)
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 ch)
void ix_dspv_set_flag4 (int voice, int on)
void ix_dspv_recalc_mix (int voice)
void ix_dspv_mix (void *outputBuffer, unsigned int outputBytes)
void ix_dsps_alloc (int stream, unsigned int size, int frequency, int bitsPerSample, int channels)
void ix_dsps_free (int stream)
void ix_dsps_prepare (int stream)
void ix_dsps_play (int stream)
void ix_dsps_stop (int stream)
void ix_dsps_set_volume (int stream, unsigned short vol)
unsigned int ix_dsps_get_flags (int stream)
int ix_dsps_get_buffer_free (int stream)
void ix_dsps_lock (int stream, unsigned int requestedBytes, unsigned char **buffer, unsigned int *lockedBytes)
void ix_dsps_unlock (int stream)
DWORD WINAPI ix_mixer_thread_proc (void *parameter)
int ix_mixer_service (void)
const char * ix_dsp_result_to_text (int hr)
int ix_dsp_init (void)
void ix_dsp_shutdown (void)
void ix_dsp_configure (int option, void *value)
unsigned int ix_dsp_get_tick (void)
unsigned int ix_dsp_get_flags (void)
void ix_dsp_set_config_bit1 (int enabled)
void ix_dsp_set_config_bit3 (int enabled)
int ix_dsp_get_voice_count (void)
void ix_dsp_set_voice_count (int n)
int ix_dsp_get_stream_count (void)
void ix_dsp_set_stream_count (int n)
unsigned short ix_dsp_get_master_volume (void)
void ix_dsp_set_master_volume (unsigned short vol)
void ix_dsp_build_pan_tables (void)
void * ix_dsp_alloc (unsigned int bytes)
void * ix_dsp_copy (void *destination, const void *source, unsigned int bytes)
void ix_dsp_free (void *memory)
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 vol)
int ix_system_get_voice_count (void)
void ix_system_set_voice_count (int n)
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)
void __fastcall ix_sound_start (IxSound *sound)
void __fastcall ix_sound_release (IxSound *sound)
void __fastcall ix_sound_stop (IxSound *sound)
int __fastcall ix_sound_is_playing (IxSound *sound)
int ix_streamer_init (void)
void ix_streamer_destroy (void)
void ix_streamer_configure (int option, void *value)
void ix_streamer_set_dev_mode (int mode)
int ix_streamer_open_stream_file (char *path)
void ix_streamer_close_stream_file (void)
void ix_streamer_audio_play (void)
void ix_streamer_audio_stop (void)
void ix_streamer_audio_pause (void)
void ix_streamer_audio_reprepare (void)
void ix_streamer_set_intensity (unsigned char intensity)
unsigned char ix_streamer_get_intensity (void)
void ix_streamer_set_trigger (char trigger)
char ix_streamer_get_trigger (void)
void ix_streamer_force_trigger (char trigger)
void ix_streamer_set_volume (unsigned short vol)
unsigned short ix_streamer_get_volume (void)
unsigned int ix_streamer_get_audio_chunk (void)
void ix_streamer_seek_chunk (unsigned int chunk)
unsigned int ix_streamer_hash_name (unsigned char *name)
IxStreamerFileEntry * ix_streamer_find_entry (unsigned int hash)
unsigned int ix_streamer_service_audio (void)
IxStreamFile * ix_streamer_open_file (unsigned char *name, unsigned char priority)
void ix_streamer_close_file (IxStreamFile *streamFile)
DWORD WINAPI ix_streamer_thread_proc (void *parameter)
void ix_thread_handle_file_chunk (IxStreamFile *streamFile)
unsigned int ix_thread_service_streams (void)
void ix_thread_advance_audio_chunk (void)
void ix_thread_lock_stream_buffer (void)
unsigned int ix_thread_get_audio_chunk_size (void)
void ix_lzo1x_decompress (unsigned char *source, unsigned char *destination, unsigned int destinationBytes)
FILE * ix_file_open (const char *path, int mode)
void ix_file_close (FILE *file)
void ix_file_seek (FILE *file, long position)
long ix_file_tell (FILE *file)
unsigned int ix_file_read (FILE *file, void *destination, unsigned int bytes)
long ix_file_size (FILE *file)

Variables

unsigned int g_dwIxSystemBits
IxSound * g_1_pFreeSoundHead
int g_nActiveVoices
int g_nSystemVoiceCount
IxSound * g_1_pActiveSoundList
unsigned short g_nMasterVolume
short g_3_anPanTable []
CRITICAL_SECTION g_7_csMixer
IxVoice g_2_voices []
int g_nVoiceCapacity
IxStream g_1_streams []
int g_3_nStreamCount
int g_nStreamsTaken
IxSample * g_7_pSampleList
IxSound * g_1_pWaitingSoundList
unsigned int * g_7_pStreamerPacketOffsets
unsigned int g_18_dwStreamerThreadTick
FILE * g_1_pFeederPackageDisk
IxStreamFile * g_48_pPumpIdleFiles
unsigned int g_13_adwPlayerBranchingStack [32]
unsigned char * g_126_pReaderCompressedBuf
IxStreamFile * g_1_pPlayerReadQueue
unsigned int g_49_nStreamerAudioBufferSize
unsigned char * g_pStreamerFileStore
unsigned char g_6_bFeederLevel
HANDLE g_4_hStreamerWorker
IxStreamerFileEntry * g_3_pReaderFileEntries
IxStreamerHeader * g_pStreamPrologue
IxStreamerAudioChunk * g_15_pStreamerSoundChunks
IxStreamerBranch * g_7_pStreamBranches
IxStreamerFileChunk * g_17_pStreamerFileParts
CRITICAL_SECTION g_csStreamerFileFifo
CRITICAL_SECTION g_49_csStreamWorker
unsigned int g_6_dwStreamSoundChunk
DWORD g_dwStreamThreadId
unsigned int g_dwStreamerMode
HANDLE g_1_hStreamRouseEvent
unsigned int g_nSpoolerDiskChunk
unsigned int g_16_nStreamerBytesEachSecond
unsigned short g_nStreamerVolume
char g_cStreamerBranchTag
unsigned int g_nStreamerBranchStackIndex
CRITICAL_SECTION g_1_csStreamer
IxStreamerTrigger * g_6_pFeederTriggers

Detailed Description

Audio classes, DirectSound interfaces and shared ix state.

Definition in file ix.h.

Macro Definition Documentation

◆ IX_DSPS_FILE

#define IX_DSPS_FILE   "D:\\rnd\\prj\\ix\\win95\\dsp\\dsps.cpp"

◆ IX_DSPV_FILE

◆ IX_MIXER_BASE_RATE

#define IX_MIXER_BASE_RATE   22050

Definition at line 160 of file ix.h.

Referenced by ix_dsps_alloc(), and ix_dspv_set_frequency().

Enumeration Type Documentation

◆ IxSampleFlags

Enumerator
IX_SAMPLE_READY 
IX_SAMPLE_LOOPING 
IX_SAMPLE_LOADING 

Definition at line 93 of file ix.h.

◆ IxSoundFlags

Enumerator
IX_SOUND_ALLOCATED 
IX_SOUND_PLAYING 
IX_SOUND_LOOPING 
IX_SOUND_DELETE_ON_STOP 
IX_SOUND_HAS_VOICE 
IX_SOUND_VOLUME_DIRTY 
IX_SOUND_FREQUENCY_DIRTY 
IX_SOUND_PAN_DIRTY 
IX_SOUND_RELEASE_PENDING 

Definition at line 99 of file ix.h.

◆ IxStreamerFlags

Enumerator
IX_STREAMER_INITIALIZED 
IX_STREAMER_FILE_OPEN 
IX_STREAMER_AUDIO_PLAYING 
IX_STREAMER_AUDIO_PAUSED 
IX_STREAMER_THREAD_RUNNING 
IX_STREAMER_DSP_PLAYING 
IX_STREAMER_DSP_PAUSED 
IX_STREAMER_HAS_AUDIO 
IX_STREAMER_DEVELOPER_MODE 
IX_STREAMER_SHUTDOWN 
IX_STREAMER_REPREPARE_AUDIO 
IX_STREAMER_END_TRIGGERED 

Definition at line 302 of file ix.h.

◆ IxStreamFileFlags

Enumerator
IX_STREAM_FILE_OPEN 
IX_STREAM_FILE_READING 

Definition at line 297 of file ix.h.

◆ IxStreamFlags

Enumerator
IX_STREAM_ALLOCATED 
IX_STREAM_PLAYING 
IX_STREAM_LOCKED 

Definition at line 192 of file ix.h.

◆ IxVoiceFlags

Enumerator
IX_VOICE_ACTIVE 
IX_VOICE_FLAG4 
IX_VOICE_16BIT 
IX_VOICE_STEREO 

Definition at line 41 of file ix.h.

Function Documentation

◆ g_pIxMalloc()

void *__cdecl * g_pIxMalloc ( unsigned int )
extern

References g_pIxMalloc().

◆ ix_dsp_alloc()

void * ix_dsp_alloc ( unsigned int bytes)

◆ ix_dsp_build_pan_tables()

void ix_dsp_build_pan_tables ( void )

Definition at line 236 of file dsp.cpp.

References g_3_anPanTable, and ix_dsp_build_pan_tables().

Referenced by ix_dsp_build_pan_tables(), and ix_dsp_init().

◆ ix_dsp_configure()

◆ ix_dsp_copy()

void * ix_dsp_copy ( void * destination,
const void * source,
unsigned int bytes )

◆ ix_dsp_free()

void ix_dsp_free ( void * memory)

Definition at line 318 of file dsp.cpp.

References ix_dsp_free().

Referenced by ix_dsp_free(), and IxSample::ix_sample_destruct().

◆ ix_dsp_get_flags()

unsigned int ix_dsp_get_flags ( void )

Definition at line 145 of file dsp.cpp.

References g_5_dwSoundOptions, and ix_dsp_get_flags().

Referenced by ix_dsp_get_flags().

◆ ix_dsp_get_master_volume()

unsigned short ix_dsp_get_master_volume ( void )

Definition at line 213 of file dsp.cpp.

References g_nMasterVolume, and ix_dsp_get_master_volume().

Referenced by ix_dsp_get_master_volume(), and ix_system_get_master_volume().

◆ ix_dsp_get_stream_count()

int ix_dsp_get_stream_count ( void )

Definition at line 191 of file dsp.cpp.

References g_3_nStreamCount, and ix_dsp_get_stream_count().

Referenced by ix_dsp_get_stream_count().

◆ ix_dsp_get_tick()

unsigned int ix_dsp_get_tick ( void )

◆ ix_dsp_get_voice_count()

int ix_dsp_get_voice_count ( void )

◆ ix_dsp_init()

◆ ix_dsp_result_to_text()

const char * ix_dsp_result_to_text ( int hr)

Definition at line 270 of file dsp.cpp.

References ix_dsp_result_to_text().

Referenced by ix_dsp_result_to_text(), ix_mixer_service(), and ix_mixer_thread_proc().

◆ ix_dsp_set_config_bit1()

void ix_dsp_set_config_bit1 ( int enabled)

Definition at line 151 of file dsp.cpp.

References g_5_dwSoundOptions, and ix_dsp_set_config_bit1().

Referenced by ix_dsp_set_config_bit1().

◆ ix_dsp_set_config_bit3()

void ix_dsp_set_config_bit3 ( int enabled)

Definition at line 160 of file dsp.cpp.

References g_5_dwSoundOptions, and ix_dsp_set_config_bit3().

Referenced by ix_dsp_set_config_bit3().

◆ ix_dsp_set_master_volume()

void ix_dsp_set_master_volume ( unsigned short vol)

◆ ix_dsp_set_stream_count()

void ix_dsp_set_stream_count ( int n)

◆ ix_dsp_set_voice_count()

void ix_dsp_set_voice_count ( int n)

◆ ix_dsp_shutdown()

◆ ix_dsps_alloc()

◆ ix_dsps_free()

◆ ix_dsps_get_buffer_free()

int ix_dsps_get_buffer_free ( int stream)

Definition at line 223 of file dsps.cpp.

◆ ix_dsps_get_flags()

unsigned int ix_dsps_get_flags ( int stream)

◆ ix_dsps_lock()

void ix_dsps_lock ( int stream,
unsigned int requestedBytes,
unsigned char ** buffer,
unsigned int * lockedBytes )

◆ ix_dsps_play()

◆ ix_dsps_prepare()

◆ ix_dsps_set_volume()

◆ ix_dsps_stop()

◆ ix_dsps_unlock()

void ix_dsps_unlock ( int stream)

Definition at line 296 of file dsps.cpp.

◆ 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_mix()

void ix_dspv_mix ( void * outputBuffer,
unsigned int outputBytes )

References ix_dspv_mix().

Referenced by ix_dspv_mix(), and ix_mixer_service().

◆ 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 * p,
int len )

◆ ix_dspv_set_channels()

void ix_dspv_set_channels ( int voice,
int ch )

◆ 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 a )

◆ ix_dspv_set_position()

void ix_dspv_set_position ( int voice,
int off )

◆ ix_dspv_set_volume()

void ix_dspv_set_volume ( int voice,
short vol )

◆ ix_file_close()

void ix_file_close ( FILE * file)

Definition at line 42 of file ixfile.cpp.

References ix_file_close().

Referenced by ix_file_close(), ix_streamer_close_file(), and ix_streamer_close_stream_file().

◆ ix_file_open()

FILE * ix_file_open ( const char * path,
int mode )

Definition at line 28 of file ixfile.cpp.

References ix_file_open().

Referenced by ix_file_open(), ix_streamer_open_file(), and ix_streamer_open_stream_file().

◆ ix_file_read()

unsigned int ix_file_read ( FILE * file,
void * destination,
unsigned int bytes )

◆ ix_file_seek()

void ix_file_seek ( FILE * file,
long position )

◆ ix_file_size()

long ix_file_size ( FILE * file)

Definition at line 75 of file ixfile.cpp.

References ix_file_size().

Referenced by ix_file_size(), and ix_streamer_open_file().

◆ ix_file_tell()

long ix_file_tell ( FILE * file)

Definition at line 54 of file ixfile.cpp.

References ix_file_tell().

Referenced by ix_file_tell(), and ix_thread_handle_file_chunk().

◆ ix_log_printf()

◆ ix_lzo1x_decompress()

void ix_lzo1x_decompress ( unsigned char * source,
unsigned char * destination,
unsigned int destinationBytes )

Definition at line 16 of file lzo1x.cpp.

References ix_lzo1x_decompress().

Referenced by ix_lzo1x_decompress(), and ix_thread_handle_file_chunk().

◆ ix_mixer_service()

◆ ix_mixer_thread_proc()

◆ ix_sound_is_playing()

int __fastcall ix_sound_is_playing ( IxSound * sound)

Definition at line 361 of file sound.cpp.

◆ ix_sound_release()

void __fastcall ix_sound_release ( IxSound * sound)

Definition at line 189 of file sound.cpp.

◆ ix_sound_start()

void __fastcall ix_sound_start ( IxSound * sound)

Definition at line 103 of file sound.cpp.

◆ ix_sound_stop()

void __fastcall ix_sound_stop ( IxSound * sound)

Definition at line 211 of file sound.cpp.

◆ ix_streamer_audio_pause()

◆ ix_streamer_audio_play()

void ix_streamer_audio_play ( void )

Definition at line 333 of file streamer.cpp.

◆ ix_streamer_audio_reprepare()

◆ ix_streamer_audio_stop()

void ix_streamer_audio_stop ( void )

Definition at line 346 of file streamer.cpp.

◆ ix_streamer_close_file()

◆ ix_streamer_close_stream_file()

void ix_streamer_close_stream_file ( void )

Definition at line 294 of file streamer.cpp.

◆ ix_streamer_configure()

void ix_streamer_configure ( int option,
void * value )

Definition at line 99 of file streamer.cpp.

◆ ix_streamer_destroy()

void ix_streamer_destroy ( void )

Definition at line 78 of file streamer.cpp.

◆ ix_streamer_find_entry()

◆ ix_streamer_force_trigger()

void ix_streamer_force_trigger ( char trigger)

Definition at line 420 of file streamer.cpp.

◆ ix_streamer_get_audio_chunk()

unsigned int ix_streamer_get_audio_chunk ( void )

Definition at line 493 of file streamer.cpp.

References g_6_dwStreamSoundChunk, and ix_streamer_get_audio_chunk().

Referenced by ix_streamer_get_audio_chunk().

◆ ix_streamer_get_intensity()

unsigned char ix_streamer_get_intensity ( void )

Definition at line 393 of file streamer.cpp.

References g_6_bFeederLevel, and ix_streamer_get_intensity().

Referenced by ix_streamer_get_intensity().

◆ ix_streamer_get_trigger()

char ix_streamer_get_trigger ( void )

Definition at line 414 of file streamer.cpp.

References g_cStreamerBranchTag, and ix_streamer_get_trigger().

Referenced by ix_streamer_get_trigger().

◆ ix_streamer_get_volume()

unsigned short ix_streamer_get_volume ( void )

Definition at line 487 of file streamer.cpp.

◆ ix_streamer_hash_name()

unsigned int ix_streamer_hash_name ( unsigned char * name)

Definition at line 514 of file streamer.cpp.

References ix_streamer_hash_name().

Referenced by ix_streamer_hash_name(), and ix_streamer_open_file().

◆ ix_streamer_init()

int ix_streamer_init ( void )

Definition at line 48 of file streamer.cpp.

◆ ix_streamer_open_file()

◆ ix_streamer_open_stream_file()

int ix_streamer_open_stream_file ( char * path)

Definition at line 120 of file streamer.cpp.

◆ ix_streamer_seek_chunk()

void ix_streamer_seek_chunk ( unsigned int chunk)

◆ ix_streamer_service_audio()

◆ ix_streamer_set_dev_mode()

◆ ix_streamer_set_intensity()

void ix_streamer_set_intensity ( unsigned char intensity)

Definition at line 383 of file streamer.cpp.

◆ ix_streamer_set_trigger()

void ix_streamer_set_trigger ( char trigger)

Definition at line 399 of file streamer.cpp.

◆ ix_streamer_set_volume()

void ix_streamer_set_volume ( unsigned short vol)

Definition at line 471 of file streamer.cpp.

◆ ix_streamer_thread_proc()

◆ ix_system_assign_voice()

◆ ix_system_configure()

void ix_system_configure ( int option,
void * value )

Definition at line 104 of file system.cpp.

◆ ix_system_delete_all_samples()

void ix_system_delete_all_samples ( void )

Definition at line 159 of file system.cpp.

◆ ix_system_delete_all_sounds()

void ix_system_delete_all_sounds ( void )

Definition at line 197 of file system.cpp.

◆ ix_system_delete_sample()

void ix_system_delete_sample ( IxSample * sample)

◆ ix_system_delete_sound()

void ix_system_delete_sound ( IxSound * sound)

Definition at line 184 of file system.cpp.

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

int ix_system_init ( void )

Definition at line 25 of file system.cpp.

◆ ix_system_new_sample()

IxSample * ix_system_new_sample ( void )

Definition at line 139 of file system.cpp.

◆ ix_system_new_sound()

IxSound * ix_system_new_sound ( IxSample * sample)

Definition at line 173 of file system.cpp.

◆ ix_system_release_voice()

◆ ix_system_service_sounds()

void ix_system_service_sounds ( void )

Definition at line 46 of file system.cpp.

◆ ix_system_set_master_volume()

void ix_system_set_master_volume ( unsigned short vol)

Definition at line 116 of file system.cpp.

◆ ix_system_set_voice_count()

void ix_system_set_voice_count ( int n)

Definition at line 128 of file system.cpp.

◆ ix_system_shutdown()

void ix_system_shutdown ( void )

Definition at line 93 of file system.cpp.

◆ ix_thread_advance_audio_chunk()

◆ ix_thread_get_audio_chunk_size()

◆ ix_thread_handle_file_chunk()

◆ ix_thread_lock_stream_buffer()

◆ ix_thread_service_streams()

◆ void()

void ( __cdecl * g_pIxFree)
extern

Variable Documentation

◆ g_126_pReaderCompressedBuf

unsigned char* g_126_pReaderCompressedBuf
extern

◆ g_13_adwPlayerBranchingStack

unsigned int g_13_adwPlayerBranchingStack[32]
extern

Definition at line 20 of file streamer.cpp.

Referenced by ix_streamer_force_trigger(), and ix_thread_advance_audio_chunk().

◆ g_15_pStreamerSoundChunks

◆ g_16_nStreamerBytesEachSecond

unsigned int g_16_nStreamerBytesEachSecond
extern

◆ g_17_pStreamerFileParts

IxStreamerFileChunk* g_17_pStreamerFileParts
extern

◆ g_18_dwStreamerThreadTick

unsigned int g_18_dwStreamerThreadTick
extern

Definition at line 17 of file streamer.cpp.

Referenced by ix_streamer_thread_proc(), and ix_thread_handle_file_chunk().

◆ g_1_csStreamer

◆ g_1_hStreamRouseEvent

◆ g_1_pActiveSoundList

◆ g_1_pFeederPackageDisk

FILE* g_1_pFeederPackageDisk
extern

◆ g_1_pFreeSoundHead

◆ g_1_pPlayerReadQueue

◆ g_1_pWaitingSoundList

◆ g_1_streams

◆ g_2_voices

◆ g_3_anPanTable

short g_3_anPanTable[]
extern

Definition at line 29 of file dsp.cpp.

Referenced by ix_dsp_build_pan_tables(), ix_dspv_recalc_mix(), and void().

◆ g_3_nStreamCount

◆ g_3_pReaderFileEntries

IxStreamerFileEntry* g_3_pReaderFileEntries
extern

◆ g_48_pPumpIdleFiles

◆ g_49_csStreamWorker

CRITICAL_SECTION g_49_csStreamWorker
extern

Definition at line 33 of file streamer.cpp.

Referenced by ix_streamer_destroy(), ix_streamer_init(), and ix_streamer_thread_proc().

◆ g_49_nStreamerAudioBufferSize

unsigned int g_49_nStreamerAudioBufferSize
extern

Definition at line 23 of file streamer.cpp.

Referenced by ix_streamer_open_stream_file().

◆ g_4_hStreamerWorker

HANDLE g_4_hStreamerWorker
extern

Definition at line 26 of file streamer.cpp.

Referenced by ix_streamer_init().

◆ g_6_bFeederLevel

unsigned char g_6_bFeederLevel
extern

◆ g_6_dwStreamSoundChunk

◆ g_6_pFeederTriggers

◆ g_7_csMixer

CRITICAL_SECTION g_7_csMixer
extern

◆ g_7_pSampleList

◆ g_7_pStreamBranches

IxStreamerBranch* g_7_pStreamBranches
extern

◆ g_7_pStreamerPacketOffsets

unsigned int* g_7_pStreamerPacketOffsets
extern

◆ g_csStreamerFileFifo

◆ g_cStreamerBranchTag

char g_cStreamerBranchTag
extern

◆ g_dwIxSystemBits

unsigned int g_dwIxSystemBits
extern

Definition at line 14 of file system.cpp.

Referenced by ix_system_init(), and ix_system_shutdown().

◆ g_dwStreamerMode

unsigned int g_dwStreamerMode

Definition at line 506 of file ix.h.

◆ g_dwStreamThreadId

DWORD g_dwStreamThreadId
extern

Definition at line 35 of file streamer.cpp.

Referenced by ix_streamer_init().

◆ g_nActiveVoices

int g_nActiveVoices
extern

◆ g_nMasterVolume

unsigned short g_nMasterVolume
extern

◆ g_nSpoolerDiskChunk

unsigned int g_nSpoolerDiskChunk
extern

Definition at line 38 of file streamer.cpp.

Referenced by ix_streamer_open_stream_file(), and ix_thread_handle_file_chunk().

◆ g_nStreamerBranchStackIndex

unsigned int g_nStreamerBranchStackIndex
extern

◆ g_nStreamerVolume

unsigned short g_nStreamerVolume
extern

◆ g_nStreamsTaken

int g_nStreamsTaken
extern

◆ g_nSystemVoiceCount

int g_nSystemVoiceCount
extern

◆ g_nVoiceCapacity

◆ g_pStreamerFileStore

unsigned char* g_pStreamerFileStore
extern

◆ g_pStreamPrologue