gamesnd

view src/gamesnd_impl.h @ 0:14e265e1cad8

initial
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 09 Sep 2012 02:55:47 +0300
parents
children
line source
1 #ifndef GAMESND_IMPL_H_
2 #define GAMESND_IMPL_H_
4 #include "gamesnd.h"
6 /* implementation structures defined by each backend */
7 struct sample;
8 struct source;
9 struct track;
11 struct gsnd_sample {
12 struct sample *ao_sam;
13 };
15 struct gsnd_source {
16 struct source *ao_src;
17 struct gsnd_sample *sam;
18 float volume, pitch;
20 struct gsnd_source *next;
21 };
23 struct gsnd_track {
24 struct track *ao_trk;
25 float volume;
26 };
28 struct gsnd_io {
29 void *file;
30 gsnd_io_read_func read;
31 gsnd_io_seek_func seek;
32 };
34 #endif /* GAMESND_IMPL_H_ */