diff options
| author | Yuval Adam <_@yuv.al> | 2022-07-22 10:51:51 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2022-07-22 10:51:51 +0300 |
| commit | 44aa0598cbfc5d0f8b4dbff614f5999c942f9767 (patch) | |
| tree | 2e8b48e504f479bb5cbeee13939e271c358cfa61 /c2enc/src/main.rs | |
| parent | 98b98a3893f5a4f1f04ef689c993edd1cb897bd3 (diff) | |
Formatting cleanup
Diffstat (limited to 'c2enc/src/main.rs')
| -rw-r--r-- | c2enc/src/main.rs | 6 |
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); } |
