mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
udev-detect, alsa-card: Adopt avoid resampling option from daemon.conf
Previously, the "avoid-resampling" option of daemon.conf is to make the daemon try to use the stream sample rate if possible for all sinks or sources. This patch applies this option to module-udev-detect and module-alsa-card as a module argument in order to override the default value of daemon.conf. As a result, user can use this argument for more fine-grained control. e.g.) set it false in daemon.conf and set it true for module-udev-detect or a particular module-alsa-card in default.pa.(or vice versa) To set it, use "avoid_resampling=true or false" as the module argument. Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
This commit is contained in:
parent
3b2a5bdc10
commit
ef094638f5
8 changed files with 64 additions and 8 deletions
|
|
@ -83,6 +83,7 @@ struct pa_sink {
|
|||
pa_channel_map channel_map;
|
||||
uint32_t default_sample_rate;
|
||||
uint32_t alternate_sample_rate;
|
||||
bool avoid_resampling:1;
|
||||
|
||||
pa_idxset *inputs;
|
||||
unsigned n_corked;
|
||||
|
|
@ -376,6 +377,7 @@ typedef struct pa_sink_new_data {
|
|||
pa_sample_spec sample_spec;
|
||||
pa_channel_map channel_map;
|
||||
uint32_t alternate_sample_rate;
|
||||
bool avoid_resampling:1;
|
||||
pa_cvolume volume;
|
||||
bool muted:1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue