mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse: use format from node if available
And fall back to some defaults otherwise.
This commit is contained in:
parent
18b4aee677
commit
24755afee9
2 changed files with 28 additions and 16 deletions
|
|
@ -1103,6 +1103,8 @@ static int set_mask(pa_context *c, struct global *g)
|
|||
g->node_info.device_id = SPA_ID_INVALID;
|
||||
|
||||
ginfo = &node_info;
|
||||
g->node_info.sample_spec.format = PA_SAMPLE_S16NE;
|
||||
g->node_info.sample_spec.rate = 44100;
|
||||
g->node_info.volume = 1.0f;
|
||||
g->node_info.mute = false;
|
||||
g->node_info.base_volume = 1.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue