fallout2-ce/src/sound_effects_cache.h

25 lines
855 B
C
Raw Permalink Normal View History

2022-05-19 01:51:26 -07:00
#ifndef SOUND_EFFECTS_CACHE_H
#define SOUND_EFFECTS_CACHE_H
2022-09-23 05:43:44 -07:00
namespace fallout {
2022-05-19 01:51:26 -07:00
// The maximum number of sound effects that can be loaded and played
// simultaneously.
#define SOUND_EFFECTS_MAX_COUNT (4)
int soundEffectsCacheInit(int cache_size, const char* effectsPath);
void soundEffectsCacheExit();
int soundEffectsCacheInitialized();
void soundEffectsCacheFlush();
2023-04-27 00:14:41 -07:00
int soundEffectsCacheFileOpen(const char* fname, int* sampleRate);
2022-05-19 01:51:26 -07:00
int soundEffectsCacheFileClose(int handle);
int soundEffectsCacheFileRead(int handle, void* buf, unsigned int size);
int soundEffectsCacheFileWrite(int handle, const void* buf, unsigned int size);
2022-05-21 08:22:03 -07:00
long soundEffectsCacheFileSeek(int handle, long offset, int origin);
2022-05-19 01:51:26 -07:00
long soundEffectsCacheFileTell(int handle);
long soundEffectsCacheFileLength(int handle);
2022-09-23 05:43:44 -07:00
} // namespace fallout
2022-05-19 01:51:26 -07:00
#endif /* SOUND_EFFECTS_CACHE_H */