pub struct FfmpegOptions {
pub bitrate_kbps: u32,
pub volume: Option<f32>,
pub seek: Option<Duration>,
pub program: PathBuf,
}Expand description
How AudioResource::ffmpeg_file and its siblings transcode.
Fields§
§bitrate_kbps: u32Opus bitrate in kbit/s, 8 to 256 (default 128).
volume: Option<f32>Gain, 0.0 to 4.0 (None leaves the volume alone).
seek: Option<Duration>Start this far in.
program: PathBufThe ffmpeg program (default ffmpeg, found on PATH).
Trait Implementations§
Source§impl Clone for FfmpegOptions
impl Clone for FfmpegOptions
Source§fn clone(&self) -> FfmpegOptions
fn clone(&self) -> FfmpegOptions
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 moreSource§impl Debug for FfmpegOptions
impl Debug for FfmpegOptions
Auto Trait Implementations§
impl Freeze for FfmpegOptions
impl RefUnwindSafe for FfmpegOptions
impl Send for FfmpegOptions
impl Sync for FfmpegOptions
impl Unpin for FfmpegOptions
impl UnsafeUnpin for FfmpegOptions
impl UnwindSafe for FfmpegOptions
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