pub struct GameAudio<'a> {
pub mixer: &'a mut AudioMixer,
pub stereo_samples: &'a Assets<StereoSample>,
}
Fields§
§mixer: &'a mut AudioMixer
§stereo_samples: &'a Assets<StereoSample>
Implementations§
Source§impl<'a> GameAudio<'a>
impl<'a> GameAudio<'a>
pub fn new( mixer: &'a mut AudioMixer, stereo_samples: &'a Assets<StereoSample>, ) -> Self
Trait Implementations§
Source§impl Audio for GameAudio<'_>
impl Audio for GameAudio<'_>
fn play(&mut self, sample_id: &StereoSampleRef) -> SoundHandle
Auto Trait Implementations§
impl<'a> Freeze for GameAudio<'a>
impl<'a> !RefUnwindSafe for GameAudio<'a>
impl<'a> Send for GameAudio<'a>
impl<'a> Sync for GameAudio<'a>
impl<'a> Unpin for GameAudio<'a>
impl<'a> !UnwindSafe for GameAudio<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more