summaryrefslogtreecommitdiffstats
path: root/sys/directsound/gstdirectsoundsink.h
diff options
context:
space:
mode:
authorSébastien Moutte <sebastien@moutte.net>2007-05-23 22:44:12 +0000
committerSébastien Moutte <sebastien@moutte.net>2007-05-23 22:44:12 +0000
commit877b1be83af339df7884d4cbc56498ba45394ae9 (patch)
treeb315af72e871eb3db9c7bbffce0bb58c80ea8cd2 /sys/directsound/gstdirectsoundsink.h
parentab92670d133a7e0e498a4374b30d54233a686e27 (diff)
docs/plugins/gst-plugins-bad-plugins.args: Remove directsoundsink property doc as this sink use the mixer interface now.
Original commit message from CVS: * docs/plugins/gst-plugins-bad-plugins.args: Remove directsoundsink property doc as this sink use the mixer interface now. * docs/plugins/gst-plugins-bad-plugins.interfaces: Add interfaces implemented by Windows sinks. * sys/directsound/gstdirectsoundsink.c: * sys/directsound/gstdirectsoundsink.h: Remove directsoundsink property and implement the mixer interface. * win32/vs6/gst_plugins_bad.dsw: * win32/vs6/libgstdirectsound.dsp: Update project files. * gst-libs/gst/dshow/gstdshow.cpp: * gst-libs/gst/dshow/gstdshow.h: * gst-libs/gst/dshow/gstdshowfakesink.cpp: * gst-libs/gst/dshow/gstdshowfakesink.h: * gst-libs/gst/dshow/gstdshowfakesrc.cpp: * gst-libs/gst/dshow/gstdshowfakesrc.h: * gst-libs/gst/dshow/gstdshowinterface.cpp: * gst-libs/gst/dshow/gstdshowinterface.h: * win32/common/libgstdshow.def: * win32/vs6/libgstdshow.dsp: Add a new gst library which allow to create internal Direct Show graph (pipelines) to wrap Windows sources, decoders or encoders. It includes a DirectShow fake source and sink and utility functions. * sys/dshowsrcwrapper/gstdshowaudiosrc.c: * sys/dshowsrcwrapper/gstdshowaudiosrc.h: * sys/dshowsrcwrapper/gstdshowsrcwrapper.c: * sys/dshowsrcwrapper/gstdshowsrcwrapper.h: * sys/dshowsrcwrapper/gstdshowvideosrc.c: * sys/dshowsrcwrapper/gstdshowvideosrc.h: * win32/vs6/libdshowsrcwrapper.dsp: Add a new plugin to wrap DirectShow sources on Windows. It gets data from any webcam, dv cam, micro. We could add tv tunner card later.
Diffstat (limited to 'sys/directsound/gstdirectsoundsink.h')
-rw-r--r--sys/directsound/gstdirectsoundsink.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/directsound/gstdirectsoundsink.h b/sys/directsound/gstdirectsoundsink.h
index ea7ccbdf..6acf92b4 100644
--- a/sys/directsound/gstdirectsoundsink.h
+++ b/sys/directsound/gstdirectsoundsink.h
@@ -30,6 +30,7 @@
#include <gst/gst.h>
#include <gst/audio/gstaudiosink.h>
+#include <gst/interfaces/mixer.h>
#include <windows.h>
#include <dxerr9.h>
@@ -51,20 +52,27 @@ struct _GstDirectSoundSink
{
GstAudioSink sink;
+ /* directsound object interface pointer */
LPDIRECTSOUND pDS;
+ /* directsound sound object interface pointer */
LPDIRECTSOUNDBUFFER pDSBSecondary;
- /*DirectSound buffer size */
+ /* directSound buffer size */
guint buffer_size;
- /*Offset of the circular buffer where we must write next */
+ /* offset of the circular buffer where we must write next */
guint current_circular_offset;
guint bytes_per_sample;
- glong attenuation;
+ /* current volume setup by mixer interface */
+ glong volume;
+ /* tracks list of our mixer interface implementation */
+ GList *tracks;
+
+ /* lock used to protect writes and resets */
GMutex *dsound_lock;
gboolean first_buffer_after_reset;