We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df71d98 + 1b18e1c commit bfd9840Copy full SHA for bfd9840
src/sdl2/audio.rs
@@ -1004,10 +1004,8 @@ impl AudioCVT {
1004
pub fn convert(&self, mut src: Vec<u8>) -> Vec<u8> {
1005
//! Convert audio data to a desired audio format.
1006
//!
1007
- //! The `src` vector is adjusted to the capacity necessary to perform
1008
- //! the conversion in place; then it is passed to the SDL library.
1009
- //!
1010
- //! Certain conversions may cause buffer overflows. See AngryLawyer/rust-sdl2 issue #270.
+ //! Passes raw audio data from src to the SDL library for conversion, returning the result
+ //! of the conversion.
1011
unsafe {
1012
if self.raw.needed != 0 {
1013
use std::convert::TryInto;
0 commit comments