mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
mix: Make use of pa_cvolume_is_norm/muted() macros
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
aec811798c
commit
b9aafdd736
1 changed files with 2 additions and 2 deletions
|
|
@ -707,10 +707,10 @@ void pa_volume_memchunk(
|
||||||
if (pa_memblock_is_silence(c->memblock))
|
if (pa_memblock_is_silence(c->memblock))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (pa_cvolume_channels_equal_to(volume, PA_VOLUME_NORM))
|
if (pa_cvolume_is_norm(volume))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (pa_cvolume_channels_equal_to(volume, PA_VOLUME_MUTED)) {
|
if (pa_cvolume_is_muted(volume)) {
|
||||||
pa_silence_memchunk(c, spec);
|
pa_silence_memchunk(c, spec);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue