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

Function test_encode_wav_sample_rate

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

Source from the content-addressed store, hash-verified

193
194 #[test]
195 fn test_encode_wav_sample_rate() {
196 let wav = encode_wav_bytes(&[0.0], 48000);
197 let sr = u32::from_le_bytes([wav[24], wav[25], wav[26], wav[27]]);
198 assert_eq!(sr, 48000);
199 }
200
201 #[test]
202 fn test_encode_wav_clamps() {

Callers

nothing calls this directly

Calls 1

encode_wav_bytesFunction · 0.70

Tested by

no test coverage detected