pub struct SoundEntry {
pub bytes: Arc<[u8]>,
}Expand description
A registered sound: the encoded file (wav/ogg/mp3/flac, whatever the driver’s backend decodes), shared so the backend can hold it without a copy. The core never decodes — headless drivers have no use for PCM.
Fields§
§bytes: Arc<[u8]>Auto Trait Implementations§
impl Freeze for SoundEntry
impl RefUnwindSafe for SoundEntry
impl Send for SoundEntry
impl Sync for SoundEntry
impl Unpin for SoundEntry
impl UnsafeUnpin for SoundEntry
impl UnwindSafe for SoundEntry
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