#[repr(C)]pub struct Music {
pub stream: AudioStream,
pub frameCount: c_uint,
pub looping: bool,
pub ctxType: c_int,
pub ctxData: *mut c_void,
}
Expand description
Music, audio stream, anything longer than ~10 seconds should be streamed
Fields§
§stream: AudioStream
Audio stream
frameCount: c_uint
Total number of frames (considering channels)
looping: bool
Music looping enable
ctxType: c_int
Type of music context (audio filetype)
ctxData: *mut c_void
Audio context data, depends on type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Music
impl RefUnwindSafe for Music
impl !Send for Music
impl !Sync for Music
impl Unpin for Music
impl UnwindSafe for Music
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