mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
alsa-pcm: allow setting number of channels
Allow passing the number of channels when creating a device to restrict the negotiated channels.
This commit is contained in:
parent
267eabaf69
commit
8168dfdbc1
5 changed files with 15 additions and 0 deletions
|
|
@ -101,6 +101,8 @@ struct state {
|
|||
bool have_format;
|
||||
struct spa_audio_info current_format;
|
||||
|
||||
unsigned int default_channels;
|
||||
|
||||
snd_pcm_uframes_t buffer_frames;
|
||||
snd_pcm_uframes_t period_frames;
|
||||
snd_pcm_format_t format;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue