]> git.bts.cx Git - benzene.git/blob - src/bz/audio/playback.h
Initial version
[benzene.git] / src / bz / audio / playback.h
1 #ifndef BZ_AUDIO_PLAYBACK_H
2 #define BZ_AUDIO_PLAYBACK_H
3
4 #include <bz/memory/arena.h>
5 #include <bz/types/identifier.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 typedef struct BZAudioPlaybackEngine BZAudioPlaybackEngine;
12 typedef BZAudioPlaybackEngine * BZAudioPlaybackEngineID;
13
14 extern BZAudioPlaybackEngineID bzAudioPlaybackInit(BZMemoryArenaID arena, const char *identifierFmt, ...);
15 extern void bzAudioPlaybackTeardown(BZAudioPlaybackEngineID engine);
16
17 extern void bzAudioPlaybackSetParameter(BZAudioPlaybackEngineID engine, BZIdentifierHash parameterIdentifier, float value);
18 extern void bzAudioPlaybackPostEvent(BZAudioPlaybackEngineID engine, BZIdentifierHash eventIdentifier, ...);
19
20 extern void bzAudioPlaybackUseSoundbank(BZAudioPlaybackEngineID engine, BZMemoryArenaID arena, const char *identifierFmt, ...);
21
22 #ifdef __cplusplus
23 }
24 #endif
25
26 #endif