2022-05-19 01:51:26 -07:00
|
|
|
#ifndef AUDIO_FILE_H
|
|
|
|
#define AUDIO_FILE_H
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2022-12-26 00:48:47 -08:00
|
|
|
typedef bool(AudioFileQueryCompressedFunc)(char* filePath);
|
2022-05-19 01:51:26 -07:00
|
|
|
|
2023-04-27 00:14:41 -07:00
|
|
|
int audioFileOpen(const char* fname, int* sampleRate);
|
2022-12-26 00:48:47 -08:00
|
|
|
int audioFileClose(int handle);
|
|
|
|
int audioFileRead(int handle, void* buf, unsigned int size);
|
2022-05-21 08:22:03 -07:00
|
|
|
long audioFileSeek(int handle, long offset, int origin);
|
2022-12-26 00:48:47 -08:00
|
|
|
long audioFileGetSize(int handle);
|
|
|
|
long audioFileTell(int handle);
|
2022-05-19 01:51:26 -07:00
|
|
|
int audioFileWrite(int handle, const void* buf, unsigned int size);
|
2022-12-26 00:48:47 -08:00
|
|
|
int audioFileInit(AudioFileQueryCompressedFunc* func);
|
2022-05-19 01:51:26 -07:00
|
|
|
void audioFileExit();
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
#endif /* AUDIO_FILE_H */
|