Macro rotary::dynamic [−][src]
Construct an audio buffer.
This is useful when testing.
Examples
let buf = rotary::dynamic![[0.0; 64]; 2]; let mut expected = vec![0.0; 64]; assert_eq!(&buf[0], &expected[..]); assert_eq!(&buf[1], &expected[..]);
Calling the macro with a template channel.
let buf = rotary::dynamic![[0.0, 1.0, 2.0, 3.0]; 2]; assert_eq!(buf[0].as_slice(), &[0.0, 1.0, 2.0, 3.0]); assert_eq!(buf[1].as_slice(), &[0.0, 1.0, 2.0, 3.0]);