#include <stdio.h>
#include "../../common/platform.h"
#include "../../common/common_utils.h"
#include "../../string/wtstring.h"
#include "../../memory/memory.h"
#include "../../filesys/file.h"
#include "../../console/console.h"
#include "../core/adlib.h"
#include "../../loaders/wav.h"
#include "../../vorbis/vorbisenc_inter.h"

Functions | |
| PUBLIC wtBoolean | AudioFile_Setup (const char *aheadfname, const char *audfname) |
| Setup for audio decoding. | |
| PUBLIC void | AudioFile_Shutdown (void) |
| Shutdown audio decoder. | |
| PUBLIC void * | AudioFile_CacheAudioChunk (W32 chunk) |
| Cache audio data. | |
| PUBLIC void | AudioFile_dataByteSwap (void *data, SW32 length) |
| Endian byte swapping for wav file. | |
| PUBLIC wtBoolean | AudioFile_ReduxDecodeSound (W32 start, W32 end, const char *path) |
| Decode sound fx. | |
| PUBLIC wtBoolean | AudioFile_ReduxDecodeMusic (W32 start, W32 end, const char *path, char *songNames[]) |
| Decode music chunks. | |
Variables | |
| PRIVATE FILE * | audiohandle |
| PRIVATE W32 * | audiostarts |
| wtBoolean | _saveAudioAsWav |
| PUBLIC void* AudioFile_CacheAudioChunk | ( | W32 | chunk | ) |
Cache audio data.
| [in] | chunk | Id of chunk to cache. |

| PUBLIC void AudioFile_dataByteSwap | ( | void * | data, | |
| SW32 | length | |||
| ) |
Endian byte swapping for wav file.
| [in,out] | Data | to byte swap. |
| [in] | length | Length of data in bytes. |

| PUBLIC wtBoolean AudioFile_ReduxDecodeMusic | ( | W32 | start, | |
| W32 | end, | |||
| const char * | path, | |||
| char * | songNames[] | |||
| ) |
Decode music chunks.
| [in] | start | Start of music chunks. |
| [in] | end | End of music chunks. |
| [in] | songNames | Song titles. |


| PUBLIC wtBoolean AudioFile_ReduxDecodeSound | ( | W32 | start, | |
| W32 | end, | |||
| const char * | path | |||
| ) |
Decode sound fx.
| [in] | start | Start of sound fx chunks. |
| [in] | end | End of sound fx chunks. |
| [in] | path | Directory path to save file to. |


| PUBLIC wtBoolean AudioFile_Setup | ( | const char * | aheadfname, | |
| const char * | audfname | |||
| ) |
Setup for audio decoding.
| [in] | aheadfname | Audio header file name. |
| [in] | audfname | Audio file name. |


| PUBLIC void AudioFile_Shutdown | ( | void | ) |
Shutdown audio decoder.
