summaryrefslogtreecommitdiff
path: root/c2enc/src
diff options
context:
space:
mode:
Diffstat (limited to 'c2enc/src')
-rw-r--r--c2enc/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/c2enc/src/main.rs b/c2enc/src/main.rs
index 2881db5..ec57ed5 100644
--- a/c2enc/src/main.rs
+++ b/c2enc/src/main.rs
@@ -24,9 +24,9 @@ fn main() {
let nsam = c.samples_per_frame();
let _nbits = c.bytes_per_frame();
- for speech in speech.chunks(nsam) {
- let mut bits: [u8; 7] = [0,0,0,0,0,0,0]; // nbits assume 7
- c.encode(&speech, &mut bits);
+ for samples in speech.chunks(nsam) {
+ let mut bits: [u8; 7] = [0, 0, 0, 0, 0, 0, 0]; // nbits assume 7
+ c.encode(&samples, &mut bits);
allbits.extend(bits);
}