mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pw-cat: fallback to default channel map in record
If not otherwise specified, use the default channelmap when recording.
This commit is contained in:
parent
193b9afdff
commit
f20aa405cb
1 changed files with 2 additions and 0 deletions
|
|
@ -1077,6 +1077,8 @@ static int setup_sndfile(struct data *data)
|
||||||
data->channels = DEFAULT_CHANNELS;
|
data->channels = DEFAULT_CHANNELS;
|
||||||
if (data->rate == 0)
|
if (data->rate == 0)
|
||||||
data->rate = DEFAULT_RATE;
|
data->rate = DEFAULT_RATE;
|
||||||
|
if (data->channelmap.n_channels == 0)
|
||||||
|
channelmap_default(&data->channelmap, data->channels);
|
||||||
|
|
||||||
memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
info.samplerate = data->rate;
|
info.samplerate = data->rate;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue