mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-01 14:38:45 +00:00
0.0.9
This commit is contained in:
1 parent
d811e5ddd3
commit
ea05c74d8a
1 file changed
-3
@@ -157,9 +157,6 @@ impl JsOpusEncoder {
|
||||
));
|
||||
}
|
||||
|
||||
// the following outputs weird output
|
||||
// let out_vec = unsafe { std::mem::transmute::<&mut [i16], &mut [u8]>(&mut out.as_mut()) };
|
||||
|
||||
let out = unsafe {
|
||||
let ptr = out.as_ptr() as *const u8;
|
||||
std::slice::from_raw_parts(ptr, decoded_samples as usize * 4)
|
||||
|
||||
Reference in new issue
Block a user