We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 356a85a commit 24932ceCopy full SHA for 24932ce
1 file changed
tests/reverb.rs
@@ -0,0 +1,27 @@
1
+mod test_support;
2
+use std::time::Duration;
3
+
4
+use rodio::Source;
5
+use test_support::{TestSource, TestSpan};
6
7
+#[test]
8
+fn without_buffered() {
9
+ let source = TestSource::new()
10
+ .with_span(TestSpan::silence().with_exact_duration(Duration::from_secs(5)));
11
12
+ let reverb = source.clone().reverb(Duration::from_secs_f32(0.05), 0.3);
13
+ let n_samples = reverb.count();
14
15
+ assert_eq!(n_samples, source.len(),);
16
+}
17
18
19
+fn with_buffered() {
20
21
22
23
+ let reverb = source.clone().buffered().reverb(Duration::from_secs_f32(0.05), 0.3);
24
25
26
27
0 commit comments