mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
alsa: add option to force a samplerate
This commit is contained in:
parent
e5f7e040dc
commit
1bf6dead10
5 changed files with 13 additions and 0 deletions
|
|
@ -782,6 +782,8 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
snprintf(this->props.device, 63, "%s", info->items[i].value);
|
||||
} else if (!strcmp(info->items[i].key, SPA_KEY_AUDIO_CHANNELS)) {
|
||||
this->default_channels = atoi(info->items[i].value);
|
||||
} else if (!strcmp(info->items[i].key, SPA_KEY_AUDIO_RATE)) {
|
||||
this->default_rate = atoi(info->items[i].value);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue