pub struct ConversionOptions {
pub inline_codebooks: bool,
pub full_setup: bool,
pub force_packet_format: ForcePacketFormat,
}Expand description
Configuration options for Wwise to Ogg conversion.
Use this struct to configure the conversion behavior instead of passing multiple boolean parameters.
§Example
use ww2ogg::{ConversionOptions, ForcePacketFormat};
let options = ConversionOptions::default()
.with_inline_codebooks(true)
.with_force_packet_format(ForcePacketFormat::ForceModPackets);Fields§
§inline_codebooks: boolIf true, codebooks are embedded inline in the audio data rather than being referenced from an external codebook library.
full_setup: boolIf true, the setup packet contains the full Vorbis setup data rather than the stripped Wwise format.
force_packet_format: ForcePacketFormatHow to handle Wwise modified packet format detection.
Implementations§
Source§impl ConversionOptions
impl ConversionOptions
Sourcepub fn with_inline_codebooks(self, value: bool) -> Self
pub fn with_inline_codebooks(self, value: bool) -> Self
Set whether codebooks are inline in the data.
Sourcepub fn with_full_setup(self, value: bool) -> Self
pub fn with_full_setup(self, value: bool) -> Self
Set whether the setup packet contains full Vorbis setup.
Sourcepub fn with_force_packet_format(self, format: ForcePacketFormat) -> Self
pub fn with_force_packet_format(self, format: ForcePacketFormat) -> Self
Set the packet format detection mode.
Trait Implementations§
Source§impl Clone for ConversionOptions
impl Clone for ConversionOptions
Source§fn clone(&self) -> ConversionOptions
fn clone(&self) -> ConversionOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 ConversionOptions
impl Debug for ConversionOptions
Source§impl Default for ConversionOptions
impl Default for ConversionOptions
Source§fn default() -> ConversionOptions
fn default() -> ConversionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConversionOptions
impl RefUnwindSafe for ConversionOptions
impl Send for ConversionOptions
impl Sync for ConversionOptions
impl Unpin for ConversionOptions
impl UnwindSafe for ConversionOptions
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