Struct vtx::Vtx[][src]

pub struct Vtx {
    pub chip: SoundChip,
    pub stereo: Stereo,
    pub frequency: u32,
    pub player_frequency: u8,
    pub loop_start_frame: u16,
    pub year: u16,
    pub title: String,
    pub author: String,
    pub from: String,
    pub tracker: String,
    pub comment: String,
    pub frame_data: Vec<u8>,
}

Fields

chip: SoundChip

Sound chip which should be used for this track

stereo: Stereo

Stereo configuration of the track

frequency: u32

Sound chip frequency (e.g. For ZX Spectrum it is usually 1773400 Hz)

player_frequency: u8

Sound frames per second (e.g. For ZX Spectrum usually equals to 50)

loop_start_frame: u16

Starting frame index for looped playback (e.g. 0 - beginning of the song)

year: u16

Year of the track

title: String

Title of the track

author: String

Author of the track

from: String

Source of the song (e.g. In which game was used)

tracker: String

Tracker program used to make this song

comment: String

Author comment

frame_data: Vec<u8>

Stores sequential blocks of register values for each frame. Each block has size if AY_REGISTER_COUNT. It is advised to use frame_registers to access frame data instead of direct access to frame_data field

Implementations

Loads VTX file using provided reader

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.