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

#include <wc1base.h>

Public Member Functions

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 54 of file wc1base.h.

Member Function Documentation

◆ ix_sample_construct()

void IxSample::ix_sample_construct ( void )

Definition at line 56 of file sample.cpp.

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

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 320 of file sample.cpp.

References IX_UNSIGNED_TO_DOUBLE.

Referenced by ix_sample_load_aiff().

◆ ix_sample_destruct()

void IxSample::ix_sample_destruct ( void )

Definition at line 68 of file sample.cpp.

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

Referenced by ix_system_delete_sample().

◆ ix_sample_load_aiff()

◆ ix_sample_load_raw()

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

◆ ix_sample_load_wav()

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 121 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 120 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: