Struct triseratops::tag::relvolad::RelVolAd
source · pub struct RelVolAd {
pub version: Version,
pub data: Vec<u8>,
}
Expand description
Represents the Serato RelVolAd
tag.
Note: This tag has not been reverse-engineered yet. Judging from the name it contains information about relative volume adjustments, but at this point that is just speculation.
Example
use triseratops::tag::{RelVolAd, format::flac::FLACTag};
// First, read the tag data from the FLAC VORBIS_COMMENT (the tag name can be accessed using the
// RelVolAd::FLAC_TAG), then parse the data like this:
fn parse(data: &[u8]) {
let content = RelVolAd::parse_flac(data).expect("Failed to parse data!");
println!("{:?}", content);
}
Fields§
§version: Version
The RelVolAd
version.
data: Vec<u8>
The data (not reverse-engineered yet)
Trait Implementations§
source§impl EnvelopedTag for RelVolAd
impl EnvelopedTag for RelVolAd
source§impl MP4Tag for RelVolAd
impl MP4Tag for RelVolAd
source§const MP4_ATOM_FREEFORM_NAME: &'static str = "relvol"
const MP4_ATOM_FREEFORM_NAME: &'static str = "relvol"
The mean part of the freeform
MP4_ATOM
that this data is stored in.source§const MP4_ATOM_FREEFORM_MEAN: &'static str = "com.serato.dj"
const MP4_ATOM_FREEFORM_MEAN: &'static str = "com.serato.dj"
The mean part of the freeform
MP4_ATOM
that this data is stored in.fn parse_mp4(input: &[u8]) -> Result<Self, Error>
fn write_mp4(&self, writer: &mut impl Write) -> Result<usize, Error>
Auto Trait Implementations§
impl RefUnwindSafe for RelVolAd
impl Send for RelVolAd
impl Sync for RelVolAd
impl Unpin for RelVolAd
impl UnwindSafe for RelVolAd
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