diff --git a/src/audio.cc b/src/audio.cc index becff56..ff5d74a 100644 --- a/src/audio.cc +++ b/src/audio.cc @@ -9,17 +9,20 @@ #include #include +static bool _defaultCompressionFunc(char* filePath); +static int audioSoundDecoderReadHandler(int fileHandle, void* buf, unsigned int size); + // 0x5108BC -AudioFileIsCompressedProc* _queryCompressedFunc = _defaultCompressionFunc; +static AudioFileIsCompressedProc* _queryCompressedFunc = _defaultCompressionFunc; // 0x56CB00 -int gAudioListLength; +static int gAudioListLength; // 0x56CB04 -AudioFile* gAudioList; +static AudioFile* gAudioList; // 0x41A2B0 -bool _defaultCompressionFunc(char* filePath) +static bool _defaultCompressionFunc(char* filePath) { char* pch = strrchr(filePath, '.'); if (pch != NULL) { @@ -30,7 +33,7 @@ bool _defaultCompressionFunc(char* filePath) } // 0x41A2D0 -int audioSoundDecoderReadHandler(int fileHandle, void* buffer, unsigned int size) +static int audioSoundDecoderReadHandler(int fileHandle, void* buffer, unsigned int size) { return fileRead(buffer, 1, size, (File*)fileHandle); } diff --git a/src/audio.h b/src/audio.h index 64a18f3..0e43c8f 100644 --- a/src/audio.h +++ b/src/audio.h @@ -3,13 +3,6 @@ #include "audio_file.h" -extern AudioFileIsCompressedProc* _queryCompressedFunc; - -extern int gAudioListLength; -extern AudioFile* gAudioList; - -bool _defaultCompressionFunc(char* filePath); -int audioSoundDecoderReadHandler(int fileHandle, void* buf, unsigned int size); int audioOpen(const char* fname, int mode, ...); int audioClose(int fileHandle); int audioRead(int fileHandle, void* buffer, unsigned int size);