2 * Copyright (C) 2005 Wim Taymans <wim@fluendo.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
23 #ifndef __GST_ALSASINK_H__
24 #define __GST_ALSASINK_H__
28 #include <gst/audio/gstaudiosink.h>
29 #include <alsa/asoundlib.h>
34 #define GST_TYPE_ALSA_SINK (gst_alsasink_get_type())
35 #define GST_ALSA_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ALSA_SINK,GstAlsaSink))
36 #define GST_ALSA_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ALSA_SINK,GstAlsaSinkClass))
37 #define GST_IS_ALSA_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ALSA_SINK))
38 #define GST_IS_ALSA_SINK_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ALSA_SINK))
40 typedef struct _GstAlsaSink GstAlsaSink;
41 typedef struct _GstAlsaSinkClass GstAlsaSinkClass;
49 snd_pcm_hw_params_t *hwparams;
50 snd_pcm_sw_params_t *swparams;
52 snd_pcm_access_t access;
53 snd_pcm_format_t format;
56 gint bytes_per_sample;
60 snd_pcm_uframes_t buffer_size;
61 snd_pcm_uframes_t period_size;
64 struct _GstAlsaSinkClass {
65 GstAudioSinkClass parent_class;
68 GType gst_alsasink_get_type(void);
72 #endif /* __GST_ALSASINK_H__ */