gamesnd

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/gamesnd_impl.h	Sun Sep 09 02:55:47 2012 +0300
     1.3 @@ -0,0 +1,34 @@
     1.4 +#ifndef GAMESND_IMPL_H_
     1.5 +#define GAMESND_IMPL_H_
     1.6 +
     1.7 +#include "gamesnd.h"
     1.8 +
     1.9 +/* implementation structures defined by each backend */
    1.10 +struct sample;
    1.11 +struct source;
    1.12 +struct track;
    1.13 +
    1.14 +struct gsnd_sample {
    1.15 +	struct sample *ao_sam;
    1.16 +};
    1.17 +
    1.18 +struct gsnd_source {
    1.19 +	struct source *ao_src;
    1.20 +	struct gsnd_sample *sam;
    1.21 +	float volume, pitch;
    1.22 +
    1.23 +	struct gsnd_source *next;
    1.24 +};
    1.25 +
    1.26 +struct gsnd_track {
    1.27 +	struct track *ao_trk;
    1.28 +	float volume;
    1.29 +};
    1.30 +
    1.31 +struct gsnd_io {
    1.32 +	void *file;
    1.33 +	gsnd_io_read_func read;
    1.34 +	gsnd_io_seek_func seek;
    1.35 +};
    1.36 +
    1.37 +#endif	/* GAMESND_IMPL_H_ */