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

The library's classes and shared declarations. 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 ix_dspv_mix (void *outputBuffer, unsigned int outputBytes)
void *__cdecl * pIxMalloc (unsigned int)
 void (__cdecl *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_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_unlink_from_free_list (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)
void ix_file_init_hook (void)
void ix_file_shutdown_hook (void)
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)
unsigned int ix_file_write (FILE *file, const void *source, unsigned int bytes)
long ix_file_size (FILE *file)

Variables

int nVoiceCount
int nStreamCount
IxSound * pIdleSoundList
IxSound * pPlayingSoundList
IxSound * pQueuedSoundList
int nActiveVoices
int nSystemVoices
unsigned int dwSoundStateFlags
IxSample * pSamples
unsigned short nMasterVolume
short asPanGains []
CRITICAL_SECTION csMixer
IxStream streams []
int nAllocatedStreams
IxVoice aVoices []
int nVoicesAllocated
unsigned int * pStreamerPacketOffsetTable
unsigned int dwStreamThreadTick
FILE * pStreamerPackFile
IxStreamFile * pStreamIdleFiles
unsigned int adwStreamCallStack [32]
unsigned char * pStreamerLzoBuffer
IxStreamFile * pStreamReadRequests
unsigned int dwIxStreamerAudioBufferSize
unsigned char * pIxStreamerInputBuffer
unsigned char bStreamerIntensityLevel
HANDLE hStreamThread
IxStreamerFileEntry * pStreamFileEntries
IxStreamerHeader * pStreamerPackageInfo
IxStreamerAudioChunk * pStreamedMusicAudioChunks
IxStreamerBranch * pMusicStreamBranchList
unsigned int nIxStreamerCurrentFileChunk
IxStreamerFileChunk * pStreamFileBlocks
CRITICAL_SECTION csStreamerFileList
CRITICAL_SECTION csIxStreamerThread
unsigned int nStreamerAudioBlock
DWORD dwIxStreamerThreadId
unsigned int dwIxStreamerStatus
HANDLE hStreamerWakeupEvent
unsigned int dwStreamBytesPerSecond
unsigned short nStreamerVolume
char cStreamerBranchTag
unsigned int nStreamCallStackIndex
CRITICAL_SECTION csStreamer
IxStreamerTrigger * pStreamTriggerList

Detailed Description

The library's classes and shared declarations.

ix is Origin Systems' audio library, in C++; its development tree was D:\Rnd\Prj\ix. The shipped debug build preserves assert __FILE__ and __LINE__ anchors for most of its source files, but they do not establish every object boundary; linker INT3 fill and library order do. In link order:

ixlog.cpp      4426a0-44274f
streamer.cpp   442750-443b0f
thread.cpp     443b10-4446ff
streamfile.cpp 444700-44490f
dsp.cpp        444910-44518f
dsps.cpp       445190-445f5f
mixer.cpp      445f60-44679f
dspv.cpp       4467a0-446f73
dspmix.asm     446f74-4471ff
system.cpp     447200-447a1f
sound.cpp      447a20-4486af
sample.cpp     4486b0-4492c5
lzo1x.cpp      4614c0-46162f
ixfile.cpp     461630-4617bf

The static debug CRT follows from 4492e0; LINK's second library pass places the LZO decoder and the file module between two of its members.

Definition in file ix.h.

Macro Definition Documentation

◆ IX_DSPS_FILE

◆ IX_DSPV_FILE

◆ IX_MIXER_BASE_RATE

#define IX_MIXER_BASE_RATE   22050

Definition at line 200 of file ix.h.

Referenced by IxVoice::ix_dsps_alloc, and IxVoice::ix_dspv_set_frequency.

Enumeration Type Documentation

◆ IxSampleFlags

Enumerator
IX_SAMPLE_READY 
IX_SAMPLE_LOOPING 
IX_SAMPLE_LOADING 

Definition at line 132 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 138 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 344 of file ix.h.

◆ IxStreamFileFlags

Enumerator
IX_STREAM_FILE_OPEN 
IX_STREAM_FILE_READING 

Definition at line 339 of file ix.h.

◆ IxStreamFlags

Enumerator
IX_STREAM_ALLOCATED 
IX_STREAM_PLAYING 
IX_STREAM_LOCKED 

Definition at line 227 of file ix.h.

◆ IxVoiceFlags

Enumerator
IX_VOICE_ACTIVE 
IX_VOICE_FLAG4 
IX_VOICE_16BIT 
IX_VOICE_STEREO 

Definition at line 50 of file ix.h.

Function Documentation

◆ 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 229 of file dsp.cpp.

References asPanGains, and ix_dsp_build_pan_tables().

Referenced by ix_dsp_build_pan_tables(), and ix_dsp_init().

◆ ix_dsp_configure()

void ix_dsp_configure ( int option,
void * value )

◆ 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 311 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 140 of file dsp.cpp.

References dwDspFlags, 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 206 of file dsp.cpp.

References ix_dsp_get_master_volume(), and nMasterVolume.

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 185 of file dsp.cpp.

References ix_dsp_get_stream_count(), and nStreamCount.

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 263 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 146 of file dsp.cpp.

References dwDspFlags, 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 155 of file dsp.cpp.

References dwDspFlags, 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)

Definition at line 94 of file dsp.cpp.

References dwDspFlags, pIxMalloc(), and void().

Referenced by ix_system_set_master_volume().

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

void ix_dsp_shutdown ( void )

◆ ix_dsps_alloc()

void ix_dsps_alloc ( int stream,
unsigned int size,
int frequency,
int bitsPerSample,
int channels )

Definition at line 95 of file dsps.cpp.

References streams.

Referenced by ix_streamer_open_stream_file().

◆ ix_dsps_free()

void ix_dsps_free ( int stream)

Definition at line 246 of file dsps.cpp.

Referenced by ix_streamer_close_stream_file().

◆ ix_dsps_get_buffer_free()

int ix_dsps_get_buffer_free ( int stream)

Definition at line 100 of file dsps.cpp.

Referenced by ix_streamer_service_audio(), and ix_thread_service_streams().

◆ ix_dsps_get_flags()

unsigned int ix_dsps_get_flags ( int stream)

Definition at line 251 of file dsps.cpp.

References IX_DSPS_FILE, ix_log_printf(), and nStreamCount.

◆ ix_dsps_lock()

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

Definition at line 253 of file dsps.cpp.

References ix_log_printf().

Referenced by ix_thread_lock_stream_buffer().

◆ ix_dsps_play()

void ix_dsps_play ( int stream)

Definition at line 97 of file dsps.cpp.

References IX_STREAM_ALLOCATED, and streams.

Referenced by ix_streamer_service_audio(), and ix_streamer_thread_proc().

◆ ix_dsps_prepare()

void ix_dsps_prepare ( int stream)

Definition at line 96 of file dsps.cpp.

References nAllocatedStreams.

Referenced by ix_streamer_service_audio(), and ix_streamer_thread_proc().

◆ ix_dsps_set_volume()

void ix_dsps_set_volume ( int stream,
unsigned short vol )

Definition at line 99 of file dsps.cpp.

Referenced by ix_streamer_open_stream_file(), and ix_streamer_set_volume().

◆ ix_dsps_stop()

void ix_dsps_stop ( int stream)

◆ ix_dsps_unlock()

void ix_dsps_unlock ( int stream)

Definition at line 255 of file dsps.cpp.

Referenced by ix_thread_lock_stream_buffer().

◆ ix_dspv_clear_active()

void ix_dspv_clear_active ( int voice)

Definition at line 80 of file dspv.cpp.

Referenced by ix_system_release_voice().

◆ ix_dspv_clear_flag4()

void ix_dspv_clear_flag4 ( int voice)

Definition at line 81 of file dspv.cpp.

References nVoiceCount.

Referenced by ix_sound_release().

◆ ix_dspv_get_flags()

unsigned int ix_dspv_get_flags ( int voice)

Definition at line 82 of file dspv.cpp.

References IX_DSPV_FILE, and ix_log_printf().

Referenced by ix_system_find_free_voice(), and ix_system_service_sounds().

◆ ix_dspv_get_position()

int ix_dspv_get_position ( int voice)

Definition at line 85 of file dspv.cpp.

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

void ix_dspv_recalc_mix ( int voice)

Definition at line 92 of file dspv.cpp.

References csMixer.

◆ ix_dspv_set_active()

void ix_dspv_set_active ( int voice)

Definition at line 79 of file dspv.cpp.

Referenced by ix_system_assign_voice().

◆ ix_dspv_set_bits_per_sample()

void ix_dspv_set_bits_per_sample ( int voice,
int bps )

Definition at line 90 of file dspv.cpp.

Referenced by ix_system_assign_voice().

◆ ix_dspv_set_buffer()

void ix_dspv_set_buffer ( int voice,
unsigned char * p,
int len )

Definition at line 84 of file dspv.cpp.

Referenced by ix_system_assign_voice().

◆ ix_dspv_set_channels()

void ix_dspv_set_channels ( int voice,
int ch )

Definition at line 91 of file dspv.cpp.

Referenced by ix_system_assign_voice().

◆ ix_dspv_set_flag4()

void ix_dspv_set_flag4 ( int voice,
int on )

Definition at line 83 of file dspv.cpp.

References ix_log_printf().

Referenced by ix_system_assign_voice().

◆ ix_dspv_set_frequency()

void ix_dspv_set_frequency ( int voice,
unsigned int hz )

Definition at line 89 of file dspv.cpp.

Referenced by ix_system_assign_voice(), and ix_system_service_sounds().

◆ ix_dspv_set_pan()

void ix_dspv_set_pan ( int voice,
unsigned short a )

Definition at line 88 of file dspv.cpp.

References csMixer.

Referenced by ix_system_assign_voice(), and ix_system_service_sounds().

◆ ix_dspv_set_position()

void ix_dspv_set_position ( int voice,
int off )

Definition at line 86 of file dspv.cpp.

References aVoices.

Referenced by ix_system_assign_voice().

◆ ix_dspv_set_volume()

void ix_dspv_set_volume ( int voice,
short vol )

Definition at line 87 of file dspv.cpp.

Referenced by ix_system_assign_voice(), and ix_system_service_sounds().

◆ ix_file_close()

void ix_file_close ( FILE * file)

Definition at line 44 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_init_hook()

void ix_file_init_hook ( void )

Definition at line 20 of file ixfile.cpp.

References ix_file_init_hook().

Referenced by ix_file_init_hook().

◆ ix_file_open()

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

Definition at line 30 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_shutdown_hook()

void ix_file_shutdown_hook ( void )

Definition at line 25 of file ixfile.cpp.

References ix_file_shutdown_hook().

Referenced by ix_file_shutdown_hook().

◆ ix_file_size()

long ix_file_size ( FILE * file)

Definition at line 76 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 56 of file ixfile.cpp.

References ix_file_tell().

Referenced by ix_file_tell(), and ix_thread_handle_file_chunk().

◆ ix_file_write()

unsigned int ix_file_write ( FILE * file,
const void * source,
unsigned int bytes )

Definition at line 69 of file ixfile.cpp.

References ix_file_write().

Referenced by ix_file_write().

◆ ix_log_printf()

void ix_log_printf ( const char * fmt,
... )

◆ ix_lzo1x_decompress()

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

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

◆ ix_sound_release()

void __fastcall ix_sound_release ( IxSound * sound)

Definition at line 188 of file sound.cpp.

◆ ix_sound_start()

void __fastcall ix_sound_start ( IxSound * sound)

Definition at line 102 of file sound.cpp.

◆ ix_sound_stop()

void __fastcall ix_sound_stop ( IxSound * sound)

Definition at line 209 of file sound.cpp.

◆ ix_sound_unlink_from_free_list()

void __fastcall ix_sound_unlink_from_free_list ( IxSound * sound)

◆ ix_streamer_audio_pause()

◆ ix_streamer_audio_play()

void ix_streamer_audio_play ( void )

Definition at line 336 of file streamer.cpp.

◆ ix_streamer_audio_reprepare()

◆ ix_streamer_audio_stop()

void ix_streamer_audio_stop ( void )

Definition at line 349 of file streamer.cpp.

◆ ix_streamer_close_file()

◆ ix_streamer_close_stream_file()

void ix_streamer_close_stream_file ( void )

Definition at line 297 of file streamer.cpp.

◆ ix_streamer_configure()

void ix_streamer_configure ( int option,
void * value )

Definition at line 102 of file streamer.cpp.

◆ ix_streamer_destroy()

void ix_streamer_destroy ( void )

Definition at line 81 of file streamer.cpp.

◆ ix_streamer_find_entry()

◆ ix_streamer_force_trigger()

void ix_streamer_force_trigger ( char trigger)

Definition at line 423 of file streamer.cpp.

◆ ix_streamer_get_audio_chunk()

unsigned int ix_streamer_get_audio_chunk ( void )

Definition at line 497 of file streamer.cpp.

References ix_streamer_get_audio_chunk(), and nStreamerAudioBlock.

Referenced by ix_streamer_get_audio_chunk().

◆ ix_streamer_get_intensity()

unsigned char ix_streamer_get_intensity ( void )

Definition at line 396 of file streamer.cpp.

References bStreamerIntensityLevel, and ix_streamer_get_intensity().

Referenced by ix_streamer_get_intensity().

◆ ix_streamer_get_trigger()

char ix_streamer_get_trigger ( void )

Definition at line 417 of file streamer.cpp.

◆ ix_streamer_get_volume()

unsigned short ix_streamer_get_volume ( void )

Definition at line 491 of file streamer.cpp.

◆ ix_streamer_hash_name()

unsigned int ix_streamer_hash_name ( unsigned char * name)

Definition at line 518 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 51 of file streamer.cpp.

◆ ix_streamer_open_file()

◆ ix_streamer_open_stream_file()

int ix_streamer_open_stream_file ( char * path)

Definition at line 123 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 386 of file streamer.cpp.

◆ ix_streamer_set_trigger()

void ix_streamer_set_trigger ( char trigger)

Definition at line 402 of file streamer.cpp.

◆ ix_streamer_set_volume()

void ix_streamer_set_volume ( unsigned short vol)

Definition at line 475 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 ix_system_get_voice_count(), and nSystemVoices.

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

◆ pIxMalloc()

void *__cdecl * pIxMalloc ( unsigned int )
extern

References pIxMalloc().

◆ void()

void ( __cdecl * pIxFree)
extern

References asPanGains, csMixer, nMasterVolume, and void().

Variable Documentation

◆ adwStreamCallStack

unsigned int adwStreamCallStack[32]
extern

Definition at line 23 of file streamer.cpp.

Referenced by ix_streamer_force_trigger(), and ix_thread_advance_audio_chunk().

◆ asPanGains

short asPanGains[]
extern

Definition at line 30 of file dsp.cpp.

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

◆ aVoices

◆ bStreamerIntensityLevel

unsigned char bStreamerIntensityLevel
extern

◆ csIxStreamerThread

CRITICAL_SECTION csIxStreamerThread
extern

Definition at line 36 of file streamer.cpp.

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

◆ csMixer

CRITICAL_SECTION csMixer
extern

◆ csStreamer

◆ csStreamerFileList

◆ cStreamerBranchTag

char cStreamerBranchTag
extern

◆ dwIxStreamerAudioBufferSize

unsigned int dwIxStreamerAudioBufferSize
extern

Definition at line 26 of file streamer.cpp.

Referenced by ix_streamer_open_stream_file().

◆ dwIxStreamerStatus

unsigned int dwIxStreamerStatus

Definition at line 521 of file ix.h.

◆ dwIxStreamerThreadId

DWORD dwIxStreamerThreadId
extern

Definition at line 38 of file streamer.cpp.

Referenced by ix_streamer_init().

◆ dwSoundStateFlags

unsigned int dwSoundStateFlags
extern

Definition at line 14 of file system.cpp.

Referenced by ix_system_init(), and ix_system_shutdown().

◆ dwStreamBytesPerSecond

unsigned int dwStreamBytesPerSecond
extern

◆ dwStreamThreadTick

unsigned int dwStreamThreadTick
extern

Definition at line 18 of file streamer.cpp.

Referenced by ix_streamer_thread_proc(), and ix_thread_handle_file_chunk().

◆ hStreamerWakeupEvent

◆ hStreamThread

HANDLE hStreamThread
extern

Definition at line 29 of file streamer.cpp.

Referenced by ix_streamer_init().

◆ nActiveVoices

int nActiveVoices
extern

◆ nAllocatedStreams

int nAllocatedStreams
extern

◆ nIxStreamerCurrentFileChunk

unsigned int nIxStreamerCurrentFileChunk
extern

Definition at line 41 of file streamer.cpp.

Referenced by ix_streamer_open_stream_file(), and ix_thread_handle_file_chunk().

◆ nMasterVolume

unsigned short nMasterVolume
extern

◆ nStreamCallStackIndex

unsigned int nStreamCallStackIndex
extern

◆ nStreamCount

◆ nStreamerAudioBlock

◆ nStreamerVolume

unsigned short nStreamerVolume
extern

◆ nSystemVoices

int nSystemVoices
extern

◆ nVoiceCount

◆ nVoicesAllocated

int nVoicesAllocated
extern

Definition at line 22 of file dspv.cpp.

Referenced by ix_dsp_set_stream_count(), and ix_dsp_set_voice_count().

◆ pIdleSoundList

◆ pIxStreamerInputBuffer

unsigned char* pIxStreamerInputBuffer
extern

◆ pMusicStreamBranchList

IxStreamerBranch* pMusicStreamBranchList
extern

◆ pPlayingSoundList

◆ pQueuedSoundList

◆ pSamples

◆ pStreamedMusicAudioChunks

◆ pStreamerLzoBuffer

unsigned char* pStreamerLzoBuffer
extern

◆ pStreamerPackageInfo

◆ pStreamerPacketOffsetTable

unsigned int* pStreamerPacketOffsetTable
extern

◆ pStreamerPackFile

◆ pStreamFileBlocks

IxStreamerFileChunk* pStreamFileBlocks
extern

◆ pStreamFileEntries

IxStreamerFileEntry* pStreamFileEntries
extern

◆ pStreamIdleFiles

◆ pStreamReadRequests

◆ pStreamTriggerList

◆ streams