#ifndef _AUDIO_H_ #define _AUDIO_H_ #include #include #include #include #include #ifdef HAVE_CELT071 #include #include #else #include #include #endif struct cmumble_audio { GstElement *record_pipeline; GstAppSink *sink; guint8 celt_header_packet[sizeof(CELTHeader)]; CELTHeader celt_header; CELTMode *celt_mode; gint32 celt_bitstream_version; }; struct cmumble; struct cmumble_user; int cmumble_audio_init(struct cmumble *cm); int cmumble_audio_fini(struct cmumble *cm); int cmumble_audio_create_playback_pipeline(struct cmumble *cm, struct cmumble_user *user); void cmumble_audio_push(struct cmumble *cm, struct cmumble_user *user, const guint8 *data, gsize size); #endif /* _AUDIO_H_ */