mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
core: Fix typo and gcc-7 -Wimplicit-fallthrough= warnings
Correct spelling of 'through' in a comment helps to fix a warning :) also drop some unrelated comments Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
parent
6f065f9589
commit
78f964d605
1 changed files with 5 additions and 5 deletions
|
|
@ -161,7 +161,7 @@ static pa_resample_method_t fix_method(
|
||||||
method = PA_RESAMPLER_AUTO;
|
method = PA_RESAMPLER_AUTO;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Else fall through */
|
/* Else fall through */
|
||||||
case PA_RESAMPLER_FFMPEG:
|
case PA_RESAMPLER_FFMPEG:
|
||||||
case PA_RESAMPLER_SOXR_MQ:
|
case PA_RESAMPLER_SOXR_MQ:
|
||||||
case PA_RESAMPLER_SOXR_HQ:
|
case PA_RESAMPLER_SOXR_HQ:
|
||||||
|
|
@ -273,20 +273,20 @@ static pa_sample_format_t choose_work_format(
|
||||||
switch (method) {
|
switch (method) {
|
||||||
/* This block is for resampling functions that only
|
/* This block is for resampling functions that only
|
||||||
* support the S16 sample format. */
|
* support the S16 sample format. */
|
||||||
case PA_RESAMPLER_SPEEX_FIXED_BASE: /* fall through */
|
case PA_RESAMPLER_SPEEX_FIXED_BASE:
|
||||||
case PA_RESAMPLER_FFMPEG:
|
case PA_RESAMPLER_FFMPEG:
|
||||||
work_format = PA_SAMPLE_S16NE;
|
work_format = PA_SAMPLE_S16NE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* This block is for resampling functions that support
|
/* This block is for resampling functions that support
|
||||||
* any sample format. */
|
* any sample format. */
|
||||||
case PA_RESAMPLER_COPY: /* fall through */
|
case PA_RESAMPLER_COPY:
|
||||||
case PA_RESAMPLER_TRIVIAL:
|
case PA_RESAMPLER_TRIVIAL:
|
||||||
if (!map_required && a == b) {
|
if (!map_required && a == b) {
|
||||||
work_format = a;
|
work_format = a;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Else fall trough */
|
/* Else fall through */
|
||||||
case PA_RESAMPLER_PEAKS:
|
case PA_RESAMPLER_PEAKS:
|
||||||
/* PEAKS, COPY and TRIVIAL do not benefit from increased
|
/* PEAKS, COPY and TRIVIAL do not benefit from increased
|
||||||
* working precision, so for better performance use s16ne
|
* working precision, so for better performance use s16ne
|
||||||
|
|
@ -295,7 +295,7 @@ static pa_sample_format_t choose_work_format(
|
||||||
work_format = PA_SAMPLE_S16NE;
|
work_format = PA_SAMPLE_S16NE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Else fall trough */
|
/* Else fall through */
|
||||||
case PA_RESAMPLER_SOXR_MQ:
|
case PA_RESAMPLER_SOXR_MQ:
|
||||||
case PA_RESAMPLER_SOXR_HQ:
|
case PA_RESAMPLER_SOXR_HQ:
|
||||||
case PA_RESAMPLER_SOXR_VHQ:
|
case PA_RESAMPLER_SOXR_VHQ:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue