Initial Audio plugin
[src/app-framework-binder.git] / plugins / audio / audio-api.h
1 #ifndef AUDIO_API_H
2 #define AUDIO_API_H
3
4 #include "audio-alsa.h"
5
6 /* global plugin handle, should store everything we may need */
7 typedef struct {
8   int devCount;
9 } pluginHandleT;
10   
11 /* structure holding one audio card with current usage status */
12 typedef struct {
13    char *name;
14    void *handle;           /* handle to implementation (ALSA, PulseAudio...) */
15  } audioDevT;
16
17 /* private client context [will be destroyed when client leaves] */
18 typedef struct {
19   audioDevT *radio;        /* pointer to client audio card          */
20   unsigned int volume;     /* audio volume : 0-100                  */
21   unsigned int rate;       /* audio rate (Hz)                       */
22   unsigned int channels;   /* audio channels : 1(mono)/2(stereo)... */
23 } audioCtxHandleT;
24
25
26 #endif /* AUDIO_API_H */