pub struct AudioFrame {
pub timestamp: Timestamp,
pub format: AudioFormat,
pub samples: Arc<[f32]>,
}Expand description
One block of decoded audio, from Player::audio_frames.
Fields§
§timestamp: TimestampThe presentation timestamp of the first sample, on the publisher’s broadcast clock.
format: AudioFormatThe sample rate and the channel layout of samples.
samples: Arc<[f32]>The samples, interleaved, from -1.0 to 1.0.
Implementations§
Trait Implementations§
Source§impl Clone for AudioFrame
impl Clone for AudioFrame
Auto Trait Implementations§
impl Freeze for AudioFrame
impl RefUnwindSafe for AudioFrame
impl Send for AudioFrame
impl Sync for AudioFrame
impl Unpin for AudioFrame
impl UnsafeUnpin for AudioFrame
impl UnwindSafe for AudioFrame
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