From 4cf9e9987284d2806592dbdbdd1df5095c990d12 Mon Sep 17 00:00:00 2001 From: Genny Date: Thu, 9 Feb 2023 19:23:00 -0600 Subject: gaudip wip --- gaudio/src/mp3.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gaudio') diff --git a/gaudio/src/mp3.rs b/gaudio/src/mp3.rs index 1157a0b..3d643dc 100644 --- a/gaudio/src/mp3.rs +++ b/gaudio/src/mp3.rs @@ -76,6 +76,8 @@ pub struct Frame { } pub struct Header { + // I only want to parse what i need, but we need this for writing out, so + raw: [u8; 4], version: Version, layer: Layer, crc: bool, @@ -93,6 +95,10 @@ impl Header { let bitrate = Bitrate::resolve(raw[2], version, layer); + //TODO: gen- love, you were trying to get the size of the data field. We need + //to know the sampling rate and the pad bit for that, which happen to be the + //next three bits. + todo!() } -- cgit 1.4.1-3-g733a5