pub struct OggVorbisData {
pub codec_version: u32,
pub vorbis_version: u32,
}
Expand description
- The extension data for OggVorbis
Fields§
§codec_version: u32
- The codec version. I’m coding this thing at 2025/5/6, so this filed for our encoded WAV file should be 0x20250506
vorbis_version: u32
- The
libvorbis
version, ourrustwav
depends onvorbis_rs 0.5.5
, which usesvorbis-sys
, which useslibvorbis 1.3.7 20200704
- So this field must be 0x20200704 for our encoded WAV file.
Implementations§
Trait Implementations§
Source§impl Clone for OggVorbisData
impl Clone for OggVorbisData
Source§fn clone(&self) -> OggVorbisData
fn clone(&self) -> OggVorbisData
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 OggVorbisData
impl Debug for OggVorbisData
Source§impl Default for OggVorbisData
impl Default for OggVorbisData
impl Copy for OggVorbisData
Auto Trait Implementations§
impl Freeze for OggVorbisData
impl RefUnwindSafe for OggVorbisData
impl Send for OggVorbisData
impl Sync for OggVorbisData
impl Unpin for OggVorbisData
impl UnwindSafe for OggVorbisData
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