mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Updated to latest Rust
This commit is contained in:
@@ -353,6 +353,7 @@ impl AudioCVT {
|
||||
pub fn convert(&self, src: CVec<u8>) -> SdlResult<CVec<u8>> {
|
||||
//! Convert audio data to a desired audio format.
|
||||
|
||||
use std::slice::Slice;
|
||||
unsafe {
|
||||
if (*self.raw).needed != 1 {
|
||||
return Err("no convertion needed!".into_string())
|
||||
|
||||
Reference in New Issue
Block a user