Struct File Playback Output
pub struct FilePlaybackOutput { /* private fields */ }Expand description
Output-only processor owning a complete, already converted file clip. Configuration must match the prepared target rate/channel order and fit the clip’s render bound. Prepare allocates scratch; process only copies samples. File reads, conversion, device opening and clip destruction belong off audio.
Configure play/pause/seek/loop through playback_mut on the exclusive owner
before transferring into PreparedOutput or open_output. This adapter does
not add a cross-thread command queue. Cursors and loops are prepared output
frames, including the explicit filter delay/tail. Device clocks and physical
output remain separately validated. Reset stops at zero/configured loop start.
Implementations§
§impl FilePlaybackOutput
impl FilePlaybackOutput
pub fn new(prepared: PreparedFilePlayback) -> Self
pub fn info(&self) -> FilePlaybackInfo
pub fn playback(&self) -> &MemoryPlayback
pub fn playback_mut(&mut self) -> &mut MemoryPlayback
pub fn into_prepared(self) -> PreparedFilePlayback
pub fn into_prepared(self) -> PreparedFilePlayback
Recover the clip after stopping callbacks; no conversion or seek occurs.