pub struct SpcHeader {Show 17 fields
pub version: u8,
pub pc: u16,
pub a: u8,
pub x: u8,
pub y: u8,
pub psw: u8,
pub sp: u8,
pub title: String,
pub game: String,
pub artist: String,
pub dump_author: String,
pub comments: String,
pub dump_date: Option<NaiveDate>,
pub duration: Duration,
pub fade_duration: Duration,
pub channel_disables: bool,
pub emulator: Emulator,
}Expand description
Header of a .spc file.
Fields§
§version: u8Version of the SPC file format. This parser can only read minor version 30, as it’s the only one in widespread use.
pc: u16Initial state of the program counter (PC) register.
a: u8Initial state of the A register.
x: u8Initial state of the X register.
y: u8Initial state of the Y register.
psw: u8Initial state of the flags (PSW) register.
sp: u8Initial state of the stack pointer (SP) register.
title: StringTitle of the track.
game: StringName of the game that the track belongs to.
artist: StringArtist or composer of the track.
Dumper of this .spc file.
comments: StringComments attached by the dumper.
dump_date: Option<NaiveDate>Date of the dump.
duration: DurationDuration the track should play for (before fadeout).
fade_duration: DurationDuration the track should fade out for (after the end).
channel_disables: boolFrom SNESAmp’s manual: “Voices checked will automatically be muted at the beginning of the song.”
emulator: EmulatorEmulator used to create the dump.