MCPcopy Create free account
hub / github.com/evilsocket/cake / test_encode_wav_byte_rate

Function test_encode_wav_byte_rate

cake-core/src/utils/wav.rs:229–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227
228 #[test]
229 fn test_encode_wav_byte_rate() {
230 let wav = encode_wav_bytes(&[0.0], 44100);
231 let byte_rate = u32::from_le_bytes([wav[28], wav[29], wav[30], wav[31]]);
232 assert_eq!(byte_rate, 44100 * 2); // 16-bit mono
233 }
234
235 // ── save_wav ────────────────────────────────────────────────
236

Callers

nothing calls this directly

Calls 1

encode_wav_bytesFunction · 0.70

Tested by

no test coverage detected