summaryrefslogtreecommitdiff
path: root/servers/audio/audio_rb_resampler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'servers/audio/audio_rb_resampler.cpp')
-rw-r--r--servers/audio/audio_rb_resampler.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/servers/audio/audio_rb_resampler.cpp b/servers/audio/audio_rb_resampler.cpp
index 0ac7ddc7a9..7097c3934f 100644
--- a/servers/audio/audio_rb_resampler.cpp
+++ b/servers/audio/audio_rb_resampler.cpp
@@ -119,10 +119,18 @@ bool AudioRBResampler::mix(AudioFrame *p_dest, int p_frames) {
{
int src_read = 0;
switch (channels) {
- case 1: src_read = _resample<1>(p_dest, target_todo, increment); break;
- case 2: src_read = _resample<2>(p_dest, target_todo, increment); break;
- case 4: src_read = _resample<4>(p_dest, target_todo, increment); break;
- case 6: src_read = _resample<6>(p_dest, target_todo, increment); break;
+ case 1:
+ src_read = _resample<1>(p_dest, target_todo, increment);
+ break;
+ case 2:
+ src_read = _resample<2>(p_dest, target_todo, increment);
+ break;
+ case 4:
+ src_read = _resample<4>(p_dest, target_todo, increment);
+ break;
+ case 6:
+ src_read = _resample<6>(p_dest, target_todo, increment);
+ break;
}
if (src_read > read_space)