//roarmixer.h: /* GStreamer * Copyright (C) <2005> Arwed v. Merkatz * Copyright (C) <2008> Philipp 'ph3-der-loewe' Schafft * Copyright (C) <2009> Philipp 'ph3-der-loewe' Schafft * * * roarmixer.h: an RoarAudio audio mixer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __GST_ROARMIXER_H__ #define __GST_ROARMIXER_H__ #include #include #include #define VERSION "0.0.1" #define PACKAGE "gst-plugins" #define GST_PACKAGE_ORIGIN "Unknown package origin" #define GST_PACKAGE_NAME "GStreamer Plug-ins source release" G_BEGIN_DECLS typedef enum { GST_ROAR_MIXER_CAPTURE = 1<<0, GST_ROAR_MIXER_PLAYBACK = 1<<1, GST_ROAR_MIXER_ALL = GST_ROAR_MIXER_CAPTURE | GST_ROAR_MIXER_PLAYBACK } GstRoarMixerDirection; typedef struct _GstRoarMixer GstRoarMixer; #define GST_ROAR_MIXER(obj) ((GstRoarMixer*)(obj)) struct _GstRoarMixer { GList * tracklist; /* list of available tracks */ struct roar_connection con; int fd; gchar *host; gchar * device; gchar * cardname; GstRoarMixerDirection dir; }; GstRoarMixer* gst_roarmixer_new (const gchar *device, GstRoarMixerDirection dir); void gst_roarmixer_free (GstRoarMixer *mixer); const GList* gst_roarmixer_list_tracks (GstRoarMixer * mixer); void gst_roarmixer_set_volume (GstRoarMixer * mixer, GstMixerTrack * track, gint * volumes); void gst_roarmixer_get_volume (GstRoarMixer * mixer, GstMixerTrack * track, gint * volumes); void gst_roarmixer_set_record (GstRoarMixer * mixer, GstMixerTrack * track, gboolean record); void gst_roarmixer_set_mute (GstRoarMixer * mixer, GstMixerTrack * track, gboolean mute); G_END_DECLS #endif /* __GST_ROARMIXER_H__ */