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.
1 parent 7ed5adb commit 4d53bd4Copy full SHA for 4d53bd4
raylib/src/core/audio.rs
@@ -649,10 +649,8 @@ impl<'aud> AudioStream<'aud> {
649
}
650
651
652
-impl<'bind> Sound<'_> {
653
- /// Clone sound from existing sound data, clone does not own wave data
654
- // NOTE: Wave data must be unallocated manually and will be shared across all clones
655
- pub fn alias<'snd>(&'snd self) -> Result<SoundAlias<'bind, 'snd>, Error> {
+impl<'bind> Sound<'bind> {
+ pub fn alias<'snd>(&'snd self) -> Result<SoundAlias<'snd, 'bind>, Error> {
656
let s = unsafe { ffi::LoadSoundAlias(self.0) };
657
if s.stream.buffer.is_null() {
658
return Err(error!("failed to load sound from wave"));
0 commit comments