mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
pulse-server: use the right config property
This commit is contained in:
parent
8251dc11cc
commit
5d20f50df8
1 changed files with 3 additions and 3 deletions
|
|
@ -97,7 +97,7 @@ struct stats {
|
||||||
#else
|
#else
|
||||||
#define DEFAULT_FORMAT "F32LE"
|
#define DEFAULT_FORMAT "F32LE"
|
||||||
#endif
|
#endif
|
||||||
#define DEFAULT_CHANNEL_MAP "[ FL FR ]"
|
#define DEFAULT_POSITION "[ FL FR ]"
|
||||||
|
|
||||||
#define MAX_FORMATS 32
|
#define MAX_FORMATS 32
|
||||||
|
|
||||||
|
|
@ -6362,7 +6362,7 @@ static int parse_frac(struct pw_properties *props, const char *key, const char *
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int parse_channel_map(struct pw_properties *props, const char *key, const char *def,
|
static int parse_position(struct pw_properties *props, const char *key, const char *def,
|
||||||
struct channel_map *res)
|
struct channel_map *res)
|
||||||
{
|
{
|
||||||
const char *str;
|
const char *str;
|
||||||
|
|
@ -6408,7 +6408,7 @@ static void load_defaults(struct defs *def, struct pw_properties *props)
|
||||||
parse_frac(props, "pulse.default.tlength", DEFAULT_DEFAULT_TLENGTH, &def->default_tlength);
|
parse_frac(props, "pulse.default.tlength", DEFAULT_DEFAULT_TLENGTH, &def->default_tlength);
|
||||||
parse_frac(props, "pulse.min.quantum", DEFAULT_MIN_QUANTUM, &def->min_quantum);
|
parse_frac(props, "pulse.min.quantum", DEFAULT_MIN_QUANTUM, &def->min_quantum);
|
||||||
parse_format(props, "pulse.default.format", DEFAULT_FORMAT, &def->sample_spec);
|
parse_format(props, "pulse.default.format", DEFAULT_FORMAT, &def->sample_spec);
|
||||||
parse_channel_map(props, "pulse.default.channel_map", DEFAULT_CHANNEL_MAP, &def->channel_map);
|
parse_position(props, "pulse.default.position", DEFAULT_POSITION, &def->channel_map);
|
||||||
def->sample_spec.channels = def->channel_map.channels;
|
def->sample_spec.channels = def->channel_map.channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue