diff options
author | Sébastien Moutte <sebastien@moutte.net> | 2006-07-24 21:43:06 +0000 |
---|---|---|
committer | Sébastien Moutte <sebastien@moutte.net> | 2006-07-24 21:43:06 +0000 |
commit | 454c2523355d5a278cf1293c446f308ce4d48c61 (patch) | |
tree | 50b441e89813aecb14c014797125d1b891a0261c /sys/directsound/gstdirectsoundsink.h | |
parent | b7f35a1240ff5ff5ccdfceb4730242f1714d9a18 (diff) | |
download | gst-plugins-bad-454c2523355d5a278cf1293c446f308ce4d48c61.tar.gz gst-plugins-bad-454c2523355d5a278cf1293c446f308ce4d48c61.tar.bz2 gst-plugins-bad-454c2523355d5a278cf1293c446f308ce4d48c61.zip |
sys/directsound/gstdirectsoundsink.*: Add an attenuation property that will directly attenuate the directsound buffer.
Original commit message from CVS:
* sys/directsound/gstdirectsoundsink.h:
* sys/directsound/gstdirectsoundsink.c:
Add an attenuation property that will directly attenuate the
directsound buffer.
Change the size of the directsound secondary buffer to a half second.
Add more debug logs.
Add a lock to protect dsound buffer write access.
Fix a bad implementation of reset.
* sys/directsound/gstdirectdrawsink.c:
* sys/directsound/gstdirectdrawsink.h:
Add a keep_aspect_ratio property.
Do not use overlay if not supported.
Add more debug logs.
Remove overwrite of WM_ERASEBKGND message handling. It was not
redrawing border when keep_aspect_ratio was enabled.
* win32/common/config.h:
update version waiting an auto-generated config.h
Diffstat (limited to 'sys/directsound/gstdirectsoundsink.h')
-rw-r--r-- | sys/directsound/gstdirectsoundsink.h | 9 |
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 |