pub struct AudioFrame<'a> {
pub requests: &'a [SoundRequest],
pub music: &'a [MusicCommand],
pub music_volume: f32,
pub sound_volume: f32,
pub voice_volume: f32,
}Expand description
One frame’s audio, as App hands it to the device.
Fields§
§requests: &'a [SoundRequest]The sound and voice requests the screens made, in order.
music: &'a [MusicCommand]What to do to the music, in order.
music_volume: f32The player’s music volume, 0–1: it multiplies every track’s own volume, a track already playing too.
sound_volume: f32The player’s sound volume, 0–1: it multiplies every sound’s own.
voice_volume: f32How loud voice clips play, 0–1, the one playing too.
Trait Implementations§
Source§impl<'a> Clone for AudioFrame<'a>
impl<'a> Clone for AudioFrame<'a>
Source§fn clone(&self) -> AudioFrame<'a>
fn clone(&self) -> AudioFrame<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AudioFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for AudioFrame<'a>
impl<'a> RefUnwindSafe for AudioFrame<'a>
impl<'a> Send for AudioFrame<'a>
impl<'a> Sync for AudioFrame<'a>
impl<'a> Unpin for AudioFrame<'a>
impl<'a> UnsafeUnpin for AudioFrame<'a>
impl<'a> UnwindSafe for AudioFrame<'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