AXaudio
common.h
1 #ifndef _AX_AUDIO_COMMON_H_
2 #define _AX_AUDIO_COMMON_H_
3 
4 #include <axaudio.h>
5 
6 #define MDP_REPLY_OK "OK"
7 #define MDP_REQUEST_OPEN "OPEN"
8 #define MDP_REQUEST_CLOSE "CLOSE"
9 #define MDP_REQUEST_PULL "PULL"
10 #define MDP_REPLY_LENGTH 16
11 #define MDP_REQ_LENGTH 1024
12 
13 #ifdef DEBUG
14 #define D(x) x
15 #else
16 #define D(x)
17 #endif
18 
19 /* uses comma operator, eval from left to right,
20  * return right-most expression.
21  * Purpose: return 'type' and increment pointer by sizeof (type)
22  */
23 #define MDP_HEADER_READ(header, type) \
24  (header += sizeof (type), *((type *)(header - sizeof (type))))
25 
26 gboolean
27 ax_audio_connect(AXAudioStream *stream, const gchar *media_type,
28  const gchar *media_props);
29 
31 read_audio_frame(const AXAudioStream *audio_instance);
32 
33 #endif /* _AX_AUDIO_COMMON_H_ */
The main include for the AXAudio interface and its associated functions.
Definition: ax_audio_datatypes.h:17
Definition: ax_audio_datatypes.h:25