2 * Copyright (C) <2005> Edgard Lima <edgard.lima@indt.org.br>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more
15 #ifndef __GST_SDLAUDIOSINK_H__
16 #define __GST_SDLAUDIOSINK_H__
20 #include <gst/audio/gstaudiosink.h>
23 #include <SDL_audio.h>
27 #define GST_TYPE_SDLAUDIOSINK (gst_sdlaudio_sink_get_type())
28 #define GST_SDLAUDIOSINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SDLAUDIOSINK,GstSDLAudioSink))
29 #define GST_SDLAUDIOSINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SDLAUDIOSINK,GstSDLAudioSinkClass))
30 #define GST_IS_SDLAUDIOSINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SDLAUDIOSINK))
31 #define GST_IS_SDLAUDIOSINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SDLAUDIOSINK))
33 typedef struct _GstSDLAudioSink GstSDLAudioSink;
34 typedef struct _GstSDLAudioSinkClass GstSDLAudioSinkClass;
36 typedef struct _gstsdl_semaphore {
43 struct _GstSDLAudioSink {
49 gstsdl_semaphore semA;
51 gstsdl_semaphore semB;
57 struct _GstSDLAudioSinkClass {
58 GstAudioSinkClass parent_class;
61 GType gst_sdlaudio_sink_get_type(void);
65 #endif /* __GST_SDLAUDIOSINK_H__ */