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 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