sigap

Very simple audio player and signal based queue manager
git clone git://jacobedwards.org/sigap
Log | Files | Refs | README | LICENSE

ap.h (305B)


      1 #ifndef _LIBAP_H_
      2 #define _LIBAP_H_
      3 
      4 #include <ao/ao.h>
      5 #include <sndfile.h>
      6 
      7 struct ap {
      8 	SNDFILE *in;
      9 	ao_device *out;
     10 	ao_sample_format fmt;
     11 };
     12 
     13 typedef short sample;
     14 
     15 struct ap	*apopen(int);
     16 int	apclose(struct ap *);
     17 ssize_t	applay(struct ap *, sample *, size_t);
     18 int	ap(int);
     19 
     20 #endif /* _LIBAP_H_ */