fallout2-ce/src/audio.h

21 lines
537 B
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef AUDIO_H
#define AUDIO_H
2022-09-23 05:43:44 -07:00
namespace fallout {
2022-12-26 00:48:47 -08:00
typedef bool(AudioQueryCompressedFunc)(char* filePath);
2023-04-27 00:14:41 -07:00
int audioOpen(const char* fname, int* sampleRate);
2022-12-26 00:48:47 -08:00
int audioClose(int handle);
int audioRead(int handle, void* buffer, unsigned int size);
long audioSeek(int handle, long offset, int origin);
long audioGetSize(int handle);
long audioTell(int handle);
2022-05-19 01:51:26 -07:00
int audioWrite(int handle, const void* buf, unsigned int size);
2022-12-26 00:48:47 -08:00
int audioInit(AudioQueryCompressedFunc* func);
2022-05-19 01:51:26 -07:00
void audioExit();
2022-09-23 05:43:44 -07:00
} // namespace fallout
2022-05-19 01:51:26 -07:00
#endif /* AUDIO_H */