Skip to content

Commit c98e15f

Browse files
committed
Assert we can still use the OfflineAudioContext after rendering
1 parent 8a89997 commit c98e15f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/context/offline.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ mod tests {
113113
let mut context = OfflineAudioContext::new(2, 555, 44_100.);
114114
let buffer = context.start_rendering_sync();
115115

116+
assert_eq!(context.length(), 555);
117+
116118
assert_eq!(buffer.number_of_channels(), 2);
117119
assert_eq!(buffer.length(), 555);
118120
assert_float_eq!(buffer.get_channel_data(0), &[0.; 555][..], abs_all <= 0.);

0 commit comments

Comments
 (0)