2000-01-30 09:03:00 +00:00
|
|
|
/* Gnome-Streamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* 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_AUDIOSINK_H__
|
|
|
|
#define __GST_AUDIOSINK_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <gst/gst.h>
|
2000-04-09 21:36:56 +00:00
|
|
|
#include <gst/gstclock.h>
|
2000-01-30 09:03:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
GstElementDetails gst_audiosink_details;
|
|
|
|
|
|
|
|
|
|
|
|
#define GST_TYPE_AUDIOSINK \
|
|
|
|
(gst_audiosink_get_type())
|
|
|
|
#define GST_AUDIOSINK(obj) \
|
|
|
|
(GTK_CHECK_CAST((obj),GST_TYPE_AUDIOSINK,GstAudioSink))
|
|
|
|
#define GST_AUDIOSINK_CLASS(klass) \
|
|
|
|
(GTK_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIOSINK,GstAudioSinkClass))
|
|
|
|
#define GST_IS_AUDIOSINK(obj) \
|
|
|
|
(GTK_CHECK_TYPE((obj),GST_TYPE_AUDIOSINK))
|
|
|
|
#define GST_IS_AUDIOSINK_CLASS(obj) \
|
2000-06-25 21:38:00 +00:00
|
|
|
(GTK_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIOSINK))
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2000-07-21 03:57:51 +00:00
|
|
|
// NOTE: per-element flags start with 16 for now
|
|
|
|
typedef enum {
|
|
|
|
GST_AUDIOSINK_OPEN = (1 << 16),
|
|
|
|
} GstAudioSinkFlags;
|
|
|
|
|
2000-01-30 09:03:00 +00:00
|
|
|
typedef struct _GstAudioSink GstAudioSink;
|
|
|
|
typedef struct _GstAudioSinkClass GstAudioSinkClass;
|
|
|
|
|
|
|
|
struct _GstAudioSink {
|
2000-03-27 19:53:43 +00:00
|
|
|
GstSink sink;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
|
|
|
GstPad *sinkpad;
|
|
|
|
|
2000-07-12 22:52:42 +00:00
|
|
|
//GstClockTime clocktime;
|
2000-04-09 21:36:56 +00:00
|
|
|
GstClock *clock;
|
2000-01-30 09:03:00 +00:00
|
|
|
/* soundcard state */
|
|
|
|
int fd;
|
2000-04-09 21:36:56 +00:00
|
|
|
int caps; /* the capabilities */
|
2000-01-30 09:03:00 +00:00
|
|
|
gint format;
|
|
|
|
gint channels;
|
|
|
|
gint frequency;
|
2000-07-05 10:21:08 +00:00
|
|
|
gboolean mute;
|
2000-01-30 09:03:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstAudioSinkClass {
|
2000-03-27 19:53:43 +00:00
|
|
|
GstSinkClass parent_class;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
|
|
|
/* signals */
|
|
|
|
void (*handoff) (GstElement *element,GstPad *pad);
|
|
|
|
};
|
|
|
|
|
|
|
|
GtkType gst_audiosink_get_type(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GST_AUDIOSINK_H__ */
|