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 Debug for RelVolAd

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EnvelopedTag for RelVolAd

source§

fn parse_enveloped(input: &[u8]) -> Result<Self, Error>

source§

fn write_enveloped(&self, writer: &mut impl Write) -> Result<usize, Error>

source§

impl FLACTag for RelVolAd

source§

const FLAC_COMMENT: &'static str = "SERATO_RELVOL"

Name of the VORBIS_COMMENT that this data is stored in.
source§

fn parse_flac(input: &[u8]) -> Result<Self, Error>

source§

fn write_flac(&self, writer: &mut impl Write) -> Result<usize, Error>

source§

impl MP4Tag for RelVolAd

source§

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"

The mean part of the freeform MP4_ATOM that this data is stored in.
source§

fn parse_mp4(input: &[u8]) -> Result<Self, Error>

source§

fn write_mp4(&self, writer: &mut impl Write) -> Result<usize, Error>

source§

impl Tag for RelVolAd

source§

const NAME: &'static str = "Serato RelVolAd"

source§

fn parse(input: &[u8]) -> Result<Self, Error>

source§

fn write(&self, writer: &mut impl Write) -> Result<usize, Error>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.