Create AudioBuffer from BaseAudioContext

This commit is contained in:
Fernando Jiménez Moreno 2018-07-04 15:39:40 +02:00
parent cb16c596b3
commit 25a74a75ea
5 changed files with 115 additions and 80 deletions

View file

@ -590,9 +590,9 @@ unsafe impl<U> JSTraceable for TypedSize2D<f32, U> {
}
}
unsafe impl JSTraceable for Mutex<Option<SharedRt>> {
unsafe fn trace(&self, _trc: *mut JSTracer) {
// Do nothing.
unsafe impl<T: JSTraceable> JSTraceable for Mutex<T> {
unsafe fn trace(&self, trc: *mut JSTracer) {
self.lock().unwrap().trace(trc);
}
}