aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-01 07:25:17 +0100
committerMax Kellermann <max@duempel.org>2014-03-01 07:49:13 +0100
commit4ba7427fa0f4c8495df331829eb67b27be9c9078 (patch)
treed34390e68bcd7a26145ea308ea0ee842d637ba32 /src/pcm
parent9dc5335e3e4e07371cfae96eca2cb5b2a93c8dd2 (diff)
downloadmpd-4ba7427fa0f4c8495df331829eb67b27be9c9078.tar.gz
mpd-4ba7427fa0f4c8495df331829eb67b27be9c9078.tar.xz
mpd-4ba7427fa0f4c8495df331829eb67b27be9c9078.zip
util/{Const,Writable}Buffer: add operator[]
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/FallbackResampler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcm/FallbackResampler.cxx b/src/pcm/FallbackResampler.cxx
index d005a831c..bd3f20d86 100644
--- a/src/pcm/FallbackResampler.cxx
+++ b/src/pcm/FallbackResampler.cxx
@@ -85,7 +85,7 @@ pcm_resample_fallback(PcmBuffer &buffer,
while (dest_pos < dest_samples) {
unsigned src_pos = dest_pos * src_rate / dest_rate;
- dest_buffer[dest_pos++] = src.data[src_pos];
+ dest_buffer[dest_pos++] = src[src_pos];
}
break;
case 2:
@@ -93,8 +93,8 @@ pcm_resample_fallback(PcmBuffer &buffer,
unsigned src_pos = dest_pos * src_rate / dest_rate;
src_pos &= ~1;
- dest_buffer[dest_pos++] = src.data[src_pos];
- dest_buffer[dest_pos++] = src.data[src_pos + 1];
+ dest_buffer[dest_pos++] = src[src_pos];
+ dest_buffer[dest_pos++] = src[src_pos + 1];
}
break;
}