|
Wing Commander
Reconstructed Win32 source (1996)
|
#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 |
Definition at line 56 of file sample.cpp.
References buffer, flags, next, previous, and pSamples.
Referenced by ix_system_new_sample().
| 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().
Definition at line 68 of file sample.cpp.
References buffer, ix_dsp_free(), next, previous, and pSamples.
Referenced by ix_system_delete_sample().
| int IxSample::ix_sample_load_aiff | ( | void * | data, |
| int | bytes ) |
Definition at line 83 of file sample.cpp.
References IxAiffCommonChunk::bitsPerSample, bitsPerSample, buffer, bytesPerFrame, IxAiffCommonChunk::channels, channels, flags, frequency, IxSampleChunk::id, ix_dsp_alloc(), ix_dsp_copy(), ix_log_printf(), ix_sample_convert_from_ieee_extended(), IX_SAMPLE_FILE, IX_SAMPLE_LOADING, IX_SAMPLE_LOOPING, IX_SAMPLE_READY, IX_SWAP_DWORD, IX_SWAP_WORD, loopEnd, loopStart, IxAiffMarker::nameLength, IxAiffMarker::position, rateDenominator, rateNumerator, sampleCount, IxAiffCommonChunk::sampleFrames, IxAiffCommonChunk::sampleRate, and IxSampleChunk::size.
| int IxSample::ix_sample_load_raw | ( | void * | data, |
| int | bytes, | ||
| int | frequency, | ||
| int | bitsPerSample, | ||
| int | channels ) |
Definition at line 294 of file sample.cpp.
References bitsPerSample, buffer, bytesPerFrame, channels, flags, frequency, ix_dsp_alloc(), ix_dsp_copy(), ix_log_printf(), IX_SAMPLE_FILE, IX_SAMPLE_LOADING, IX_SAMPLE_READY, loopEnd, loopStart, rateDenominator, rateNumerator, and sampleCount.
| int IxSample::ix_sample_load_wav | ( | void * | data, |
| int | bytes ) |
Definition at line 199 of file sample.cpp.
References bitsPerSample, IxWaveFormat::bitsPerSample, buffer, bytesPerFrame, channels, IxWaveFormat::channels, flags, IxWaveFormat::format, frequency, IxWaveFormat::frequency, IxSampleChunk::id, ix_dsp_alloc(), ix_dsp_copy(), ix_log_printf(), IX_SAMPLE_FILE, IX_SAMPLE_LOADING, IX_SAMPLE_READY, loopEnd, loopStart, rateDenominator, rateNumerator, sampleCount, and IxSampleChunk::size.
Referenced by PlaySnowStaticSound(), and playWAVE().
| unsigned int IxSample::bitsPerSample |
Definition at line 112 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), and ix_system_assign_voice().
| unsigned char* IxSample::buffer |
Definition at line 110 of file ix.h.
Referenced by ix_sample_construct(), ix_sample_destruct(), ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), and ix_system_assign_voice().
| unsigned int IxSample::bytesPerFrame |
Definition at line 114 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), and ix_system_assign_voice().
| unsigned int IxSample::channels |
Definition at line 113 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), and ix_system_assign_voice().
| unsigned int IxSample::flags |
Definition at line 55 of file wc1base.h.
Referenced by ix_sample_construct(), ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), ix_sound_start(), and playWAVE().
| unsigned int IxSample::frequency |
Definition at line 117 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), ix_sound_start(), ix_system_assign_voice(), ix_system_service_sounds(), and IxSound::ix_system_sound_set_frequency().
| unsigned int IxSample::loopEnd |
Definition at line 119 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), and ix_system_assign_voice().
| unsigned int IxSample::loopStart |
Definition at line 118 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), and ix_system_assign_voice().
| 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().
| IxSample* IxSample::previous |
Definition at line 120 of file ix.h.
Referenced by ix_sample_construct(), and ix_sample_destruct().
| unsigned int IxSample::rateDenominator |
Definition at line 116 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), and ix_system_assign_voice().
| unsigned int IxSample::rateNumerator |
Definition at line 115 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), and ix_system_assign_voice().
| unsigned int IxSample::sampleCount |
Definition at line 111 of file ix.h.
Referenced by ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), ix_sound_start(), and ix_system_assign_voice().