|
Wing Commander II
Reconstructed Win32 source (1996)
|
#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 |
Definition at line 58 of file sample.cpp.
References buffer, flags, g_7_pSampleList, next, and previous.
Referenced by ix_system_new_sample().
| 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().
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().
| int IxSample::ix_sample_load_aiff | ( | void * | data, |
| int | bytes ) |
Definition at line 85 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 292 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.
Referenced by PlayRawSpeechBuffer().
| int IxSample::ix_sample_load_raw | ( | void * | data, |
| int | bytes, | ||
| int | frequency, | ||
| int | bitsPerSample, | ||
| int | channels ) |
References bitsPerSample, channels, frequency, and ix_sample_convert_from_ieee_extended().
| 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().
| int IxSample::ix_sample_load_wav | ( | void * | data, |
| int | bytes ) |
|
inline |
| unsigned int IxSample::bitsPerSample |
Definition at line 73 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 71 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 75 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 74 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 128 of file game.h.
Referenced by ix_sample_construct(), ix_sample_load_aiff(), ix_sample_load_raw(), ix_sample_load_wav(), ix_sample_set_looping(), and ix_sound_start().
| unsigned int IxSample::frequency |
Definition at line 78 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 80 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 79 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 82 of file ix.h.
Referenced by ix_sample_construct(), ix_sample_destruct(), and ix_system_delete_all_samples().
| IxSample* IxSample::previous |
Definition at line 81 of file ix.h.
Referenced by ix_sample_construct(), and ix_sample_destruct().
| unsigned int IxSample::rateDenominator |
Definition at line 77 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 76 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 72 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().