diff options
author | Genny <gen@nyble.dev> | 2023-02-09 19:23:00 -0600 |
---|---|---|
committer | Genny <gen@nyble.dev> | 2023-02-09 19:23:00 -0600 |
commit | 4cf9e9987284d2806592dbdbdd1df5095c990d12 (patch) | |
tree | 63e4dd7c7773f4a66a12470a3ddc4043b99e54cb /gaudio | |
parent | 7ed867e409d91e830d6638289e197df42623406d (diff) | |
download | gifed-4cf9e9987284d2806592dbdbdd1df5095c990d12.tar.gz gifed-4cf9e9987284d2806592dbdbdd1df5095c990d12.zip |
gaudip wip
Diffstat (limited to 'gaudio')
-rw-r--r-- | gaudio/src/mp3.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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!() } |