Files
shairport-sync/audio.h
T
James Laird a2fb5d219d Refactor and rewrite.
Perl script is removed in favour of C. Stale documentation and initfiles
are removed for now also.

C interface works, but still needs work (for example, mDNS is missing) -
see TODO.
2013-04-01 18:57:08 +11:00

23 lines
476 B
C

#ifndef _AUDIO_H
#define _AUDIO_H
typedef struct {
// start of program
int (*init)(int argc, char **argv);
// at end of program
void (*deinit)(void);
void (*start)(int sample_rate);
// block of samples
void (*play)(short buf[], int samples);
void (*stop)(void);
// may be NULL, in which case soft volume is applied
void (*volume)(double vol);
} audio_ops;
extern audio_ops audio_dummy;
extern audio_ops audio_ao;
#endif //_AUDIO_H