Support Lead-out track

This commit is contained in:
Jaby
2024-07-21 16:33:03 +02:00
parent d4d3340f58
commit 7765137511
10 changed files with 36 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "cdtypes"
version = "0.7.0"
version = "0.7.1"
edition = "2021"
[profile.release]

View File

@@ -332,10 +332,12 @@ impl Audio {
pub struct Mode0 {
pub sync: Sync,
pub header: Header,
pub zero: [u8;2336]
pub zero: [u8;Mode0::DATA_SIZE]
}
impl Mode0 {
pub const DATA_SIZE:usize = 2336;
pub fn new() -> Mode0 {
Mode0{sync: Sync::new(), header: Header::new(0), zero: [0; 2336]}
}