mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
pulse-server: improve FIX_ flag handling
When a stream uses the FIX_ flags it should negotiate to the format of the sink or source it connects to. To do this, look up the sink or source and look at the format, use this as the allowed format for the stream when the FIX flags are set. Make it still possible to override with with properties. Use audio.position to make it possible to set a channelmap override.
This commit is contained in:
parent
ad6ab7e0b7
commit
eb797cac48
3 changed files with 68 additions and 21 deletions
|
|
@ -174,8 +174,9 @@ uint32_t format_encoding2id(enum encoding enc);
|
|||
uint32_t sample_spec_frame_size(const struct sample_spec *ss);
|
||||
bool sample_spec_valid(const struct sample_spec *ss);
|
||||
|
||||
void sample_spec_fix(struct sample_spec *ss, struct spa_dict *props,
|
||||
bool fix_format, bool fix_rate, bool fix_channels);
|
||||
void sample_spec_fix(struct sample_spec *ss, struct channel_map *map,
|
||||
const struct sample_spec *fix_ss, const struct channel_map *fix_map,
|
||||
struct spa_dict *props);
|
||||
|
||||
uint32_t channel_pa2id(enum channel_position channel);
|
||||
const char *channel_id2name(uint32_t channel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue