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 | bfd753e07d111ef16a2dcac9b6fcbefceda2d8f4 (patch) | |
tree | d6e07cdd4f56b5148c4778d259fbfa81c3f036e4 /sys/directsound/gstdirectsoundsink.h | |
parent | 4e23a74b7f9956c3c1f9b57375abfdbe4924966c (diff) |
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 |