summaryrefslogtreecommitdiffstats
path: root/sys/directsound/gstdirectsoundsink.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/directsound/gstdirectsoundsink.h')
-rw-r--r--sys/directsound/gstdirectsoundsink.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/directsound/gstdirectsoundsink.h b/sys/directsound/gstdirectsoundsink.h
index 9f107642..e4711cc9 100644
--- a/sys/directsound/gstdirectsoundsink.h
+++ b/sys/directsound/gstdirectsoundsink.h
@@ -40,6 +40,9 @@ G_BEGIN_DECLS
typedef struct _GstDirectSoundSink GstDirectSoundSink;
typedef struct _GstDirectSoundSinkClass GstDirectSoundSinkClass;
+#define GST_DSOUND_LOCK(obj) (g_mutex_lock (obj->dsound_lock))
+#define GST_DSOUND_UNLOCK(obj) (g_mutex_unlock (obj->dsound_lock))
+
struct _GstDirectSoundSink
{
GstAudioSink sink;
@@ -55,6 +58,12 @@ struct _GstDirectSoundSink
guint current_circular_offset;
guint bytes_per_sample;
+
+ glong attenuation;
+
+ GMutex *dsound_lock;
+
+ gboolean first_buffer_after_reset;
};
struct _GstDirectSoundSinkClass