mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -05:00
gst: add slave-method property
Set the slave-method to none by default to disable the resampler.
This commit is contained in:
parent
9419a12e74
commit
0658ff93d8
2 changed files with 115 additions and 37 deletions
|
|
@ -37,6 +37,22 @@ typedef enum
|
|||
|
||||
#define GST_TYPE_PIPEWIRE_SINK_MODE (gst_pipewire_sink_mode_get_type ())
|
||||
|
||||
|
||||
/**
|
||||
* GstPipeWireSinkSlaveMethod:
|
||||
* @GST_PIPEWIRE_SINK_SLAVE_METHOD_NONE: no clock and timestamp slaving
|
||||
* @GST_PIPEWIRE_SINK_SLAVE_METHOD_RESAMPLE: resample audio
|
||||
*
|
||||
* Different clock slaving methods
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
GST_PIPEWIRE_SINK_SLAVE_METHOD_NONE,
|
||||
GST_PIPEWIRE_SINK_SLAVE_METHOD_RESAMPLE,
|
||||
} GstPipeWireSinkSlaveMethod;
|
||||
|
||||
#define GST_TYPE_PIPEWIRE_SINK_SLAVE_METHOD (gst_pipewire_sink_slave_method_get_type ())
|
||||
|
||||
/**
|
||||
* GstPipeWireSink:
|
||||
*
|
||||
|
|
@ -54,6 +70,7 @@ struct _GstPipeWireSink {
|
|||
gint rate;
|
||||
|
||||
GstPipeWireSinkMode mode;
|
||||
GstPipeWireSinkSlaveMethod slave_method;
|
||||
};
|
||||
|
||||
GType gst_pipewire_sink_mode_get_type (void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue