mixertrack: add READONLY and WRITEONLY flags

Should really have been READABLE and WRITABLE, but those are hard to
add whilst maintaining backwards compatibility. See #343615.

API: GST_MIXER_TRACK_READONLY
API: GST_MIXER_TRACK_WRITEONLY
This commit is contained in:
Tim-Philipp Müller 2009-09-11 10:16:15 +01:00
parent e4e8417eeb
commit 794e03640d

View file

@ -69,6 +69,8 @@ G_BEGIN_DECLS
* @GST_MIXER_TRACK_NO_MUTE: play track doesn't support mute. Since: 0.10.23
* @GST_MIXER_TRACK_WHITELIST: track should be displayed "by default" in apps.
* Since: 0.10.23
* @GST_MIXER_TRACK_READONLY: track is read-only. Since: 0.10.25
* @GST_MIXER_TRACK_WRITEONLY: track is write-only. Since: 0.10.25
*
* Mixer track flags.
*/
@ -82,8 +84,12 @@ typedef enum {
GST_MIXER_TRACK_NO_RECORD = (1<<6),
GST_MIXER_TRACK_NO_MUTE = (1<<7),
GST_MIXER_TRACK_WHITELIST = (1<<8),
GST_MIXER_TRACK_READONLY = (1<<9),
GST_MIXER_TRACK_WRITEONLY = (1<<10)
} GstMixerTrackFlags;
/* FIXME 0.11: READONLY/WRITEONLY -> READABLE/WRITABLE etc. */
#define GST_MIXER_TRACK_HAS_FLAG(channel, flag) \
((channel)->flags & flag)