Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
sample.cpp File Reference

Sample objects: AIFF, WAV and raw loading. More...

#include "ix.h"
#include <math.h>
#include <dos.h>

Go to the source code of this file.

Data Structures

struct  IxSampleChunk
struct  IxAiffCommonChunk
struct  IxAiffMarker
struct  IxWaveFormat

Macros

#define IX_SAMPLE_FILE   "D:\\Rnd\\prj\\ix\\src\\sound\\sample.cpp"
#define IX_SWAP_WORD(value)
#define IX_SWAP_DWORD(value)
#define IX_UNSIGNED_TO_DOUBLE(value)

Detailed Description

Sample objects: AIFF, WAV and raw loading.

Originally D:\Rnd\prj\ix\src\sound\sample.cpp, address range 4486b0-4492c5, the last ix code before the import thunks and the CRT.

Definition in file sample.cpp.

Macro Definition Documentation

◆ IX_SAMPLE_FILE

#define IX_SAMPLE_FILE   "D:\\Rnd\\prj\\ix\\src\\sound\\sample.cpp"

◆ IX_SWAP_DWORD

#define IX_SWAP_DWORD ( value)
Value:
((((unsigned int)(value) & 0x0000ff00) << 8) | \
(((unsigned int)(value) >> 8) & 0x0000ff00) | \
((unsigned int)(value) << 24) | \
((unsigned int)(value) >> 24))

Definition at line 19 of file sample.cpp.

Referenced by IxSample::ix_sample_load_aiff().

◆ IX_SWAP_WORD

#define IX_SWAP_WORD ( value)
Value:
(short)((((value) & 0x00ff) << 8) | \
(((value) >> 8) & 0x00ff))

Definition at line 15 of file sample.cpp.

Referenced by IxSample::ix_sample_load_aiff().

◆ IX_UNSIGNED_TO_DOUBLE

#define IX_UNSIGNED_TO_DOUBLE ( value)
Value:
((double)(long)((value) - 2147483647L - 1) + 2147483648.0)

Definition at line 25 of file sample.cpp.

Referenced by IxSample::ix_sample_convert_from_ieee_extended().