diff options
author | Leif Johnson <leif@ambient.2y.net> | 2003-11-16 22:04:16 +0000 |
---|---|---|
committer | Leif Johnson <leif@ambient.2y.net> | 2003-11-16 22:04:16 +0000 |
commit | 6650cd92ec5c5734be7c862580d086b54116628b (patch) | |
tree | 890a4e548f1f682d5e3fe382f2d6038a3883253d /gst-libs/gst | |
parent | 5b283c92b6fffdd28b4a113c07e2f6afd752b23d (diff) | |
download | gst-plugins-bad-6650cd92ec5c5734be7c862580d086b54116628b.tar.gz gst-plugins-bad-6650cd92ec5c5734be7c862580d086b54116628b.tar.bz2 gst-plugins-bad-6650cd92ec5c5734be7c862580d086b54116628b.zip |
+ adding buffer-frames prop to standard caps macros
Original commit message from CVS:
+ adding buffer-frames prop to standard caps macros
Diffstat (limited to 'gst-libs/gst')
-rw-r--r-- | gst-libs/gst/audio/audio.h | 21 | ||||
-rw-r--r-- | gst-libs/gst/audio/audioclock.h | 10 |
2 files changed, 11 insertions, 20 deletions
diff --git a/gst-libs/gst/audio/audio.h b/gst-libs/gst/audio/audio.h index c22052f5..0958f654 100644 --- a/gst-libs/gst/audio/audio.h +++ b/gst-libs/gst/audio/audio.h @@ -68,26 +68,22 @@ G_BEGIN_DECLS GST_PROPS_BOOLEAN (TRUE),\ GST_PROPS_BOOLEAN (FALSE)\ ),\ + "buffer-frames", GST_PROPS_INT_RANGE (1, G_MAXINT),\ NULL) -#define GST_AUDIO_INT_MONO_PAD_TEMPLATE_PROPS \ +/* "standard" int audio is native order, 16 bit stereo. */ +#define GST_AUDIO_INT_STANDARD_PAD_TEMPLATE_PROPS \ gst_props_new (\ "rate", GST_PROPS_INT_RANGE (1, G_MAXINT),\ - "channels", GST_PROPS_INT (1),\ - "endianness", GST_PROPS_LIST (\ - GST_PROPS_INT (G_LITTLE_ENDIAN),\ - GST_PROPS_INT (G_BIG_ENDIAN)\ - ),\ - "width", GST_PROPS_LIST (\ - GST_PROPS_INT (8),\ - GST_PROPS_INT (16),\ - GST_PROPS_INT (32)\ - ),\ - "depth", GST_PROPS_INT_RANGE (1, 32),\ + "channels", GST_PROPS_INT (2),\ + "endianness", GST_PROPS_INT (G_BYTE_ORDER),\ + "width", GST_PROPS_INT (16),\ + "depth", GST_PROPS_INT (16),\ "signed", GST_PROPS_LIST (\ GST_PROPS_BOOLEAN (TRUE),\ GST_PROPS_BOOLEAN (FALSE)\ ),\ + "buffer-frames", GST_PROPS_INT_RANGE (1, G_MAXINT),\ NULL) #define GST_AUDIO_FLOAT_PAD_TEMPLATE_PROPS \ @@ -105,6 +101,7 @@ G_BEGIN_DECLS "buffer-frames", GST_PROPS_INT_RANGE (1, G_MAXINT),\ NULL) +/* "standard" float audio is native order, 32 bit mono. */ #define GST_AUDIO_FLOAT_STANDARD_PAD_TEMPLATE_PROPS \ gst_props_new (\ "rate", GST_PROPS_INT_RANGE (1, G_MAXINT),\ diff --git a/gst-libs/gst/audio/audioclock.h b/gst-libs/gst/audio/audioclock.h index 8d0e2a3d..f588dee8 100644 --- a/gst-libs/gst/audio/audioclock.h +++ b/gst-libs/gst/audio/audioclock.h @@ -26,10 +26,7 @@ #include <gst/gstsystemclock.h> -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - +G_BEGIN_DECLS #define GST_TYPE_AUDIO_CLOCK \ (gst_audio_clock_get_type()) @@ -79,9 +76,6 @@ void gst_audio_clock_set_active (GstAudioClock *aclock, gboolean active); void gst_audio_clock_update_time (GstAudioClock *aclock, GstClockTime time); -#ifdef __cplusplus -} -#endif /* __cplusplus */ - +G_END_DECLS #endif /* __GST_AUDIO_CLOCK_H__ */ |