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

#include <game.h>

Public Member Functions

void ix_sample_set_looping (int enabled)
int ix_sample_load_wav (void *data, int bytes)
int ix_sample_load_raw (void *data, int bytes, int frequency, int bitsPerSample, int channels)
void ix_sample_construct (void)
void ix_sample_destruct (void)
int ix_sample_load_aiff (void *data, int bytes)
int ix_sample_load_wav (void *data, int bytes)
int ix_sample_load_raw (void *data, int bytes, int frequency, int bitsPerSample, int channels)
long ix_sample_convert_from_ieee_extended (unsigned char *bytes)

Data Fields

unsigned int flags
unsigned char * buffer
unsigned int sampleCount
unsigned int bitsPerSample
unsigned int channels
unsigned int bytesPerFrame
unsigned int rateNumerator
unsigned int rateDenominator
unsigned int frequency
unsigned int loopStart
unsigned int loopEnd
IxSample * previous
IxSample * next

Detailed Description

Definition at line 127 of file game.h.

Member Function Documentation

◆ ix_sample_construct()

void IxSample::ix_sample_construct ( void )

Definition at line 58 of file sample.cpp.

References buffer, flags, g_7_pSampleList, next, and previous.

Referenced by ix_system_new_sample().

◆ ix_sample_convert_from_ieee_extended()

long IxSample::ix_sample_convert_from_ieee_extended ( unsigned char * bytes)

Definition at line 318 of file sample.cpp.

References IX_UNSIGNED_TO_DOUBLE.

Referenced by ix_sample_load_aiff(), and ix_sample_load_raw().

◆ ix_sample_destruct()

void IxSample::ix_sample_destruct ( void )

Definition at line 70 of file sample.cpp.

References buffer, g_7_pSampleList, ix_dsp_free(), next, and previous.

Referenced by ix_system_delete_sample().

◆ ix_sample_load_aiff()

◆ ix_sample_load_raw() [1/2]

int IxSample::ix_sample_load_raw ( void * data,
int bytes,
int frequency,
int bitsPerSample,
int channels )

◆ ix_sample_load_raw() [2/2]

int IxSample::ix_sample_load_raw ( void * data,
int bytes,
int frequency,
int bitsPerSample,
int channels )

◆ ix_sample_load_wav() [1/2]

◆ ix_sample_load_wav() [2/2]

int IxSample::ix_sample_load_wav ( void * data,
int bytes )

◆ ix_sample_set_looping()

void IxSample::ix_sample_set_looping ( int enabled)
inline

Definition at line 489 of file sound.c.

References flags.

Referenced by playWAVE().

Field Documentation

◆ bitsPerSample

unsigned int IxSample::bitsPerSample

◆ buffer

unsigned char* IxSample::buffer

◆ bytesPerFrame

unsigned int IxSample::bytesPerFrame

◆ channels

unsigned int IxSample::channels

◆ flags

unsigned int IxSample::flags

◆ frequency

◆ loopEnd

unsigned int IxSample::loopEnd

◆ loopStart

unsigned int IxSample::loopStart

◆ next

IxSample* IxSample::next

Definition at line 82 of file ix.h.

Referenced by ix_sample_construct(), ix_sample_destruct(), and ix_system_delete_all_samples().

◆ previous

IxSample* IxSample::previous

Definition at line 81 of file ix.h.

Referenced by ix_sample_construct(), and ix_sample_destruct().

◆ rateDenominator

unsigned int IxSample::rateDenominator

◆ rateNumerator

unsigned int IxSample::rateNumerator

◆ sampleCount

unsigned int IxSample::sampleCount

The documentation for this struct was generated from the following files: