about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml4
-rw-r--r--README.md5
-rw-r--r--gaudio/src/mp3.rs6
3 files changed, 12 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 3661d37..f186b67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [workspace]
 members = [
 	"gifed",
-	"gif-frames",
-	"gifprobe"
+	"gifprobe",
+	"gaudio"
 ]
\ No newline at end of file
diff --git a/README.md b/README.md
index 444faeb..b950a69 100644
--- a/README.md
+++ b/README.md
@@ -41,5 +41,8 @@ These are part of the 89a spec, but are kept separate as they're not "core" to t
 ## gifprobe
 Similar to FFMPEG's ffprobe, gifprobe will print details of a gif to stdout.
 
+## gaudio
+Nothing valued is here. Inject/Retrieve MP3 files from GiFs. I'd like to eventually play them right outta the thing, right, but that's a lot harder.
+
 # License
-gifed, gifprobe, and giftool are licensed under Creative Commons Zero 1.0; they're in the public domain. Attribution is appreciated, but not required.
\ No newline at end of file
+gifed, gifprobe, and gaudio are licensed under Creative Commons Zero 1.0; they're in the public domain. Attribution is appreciated, but not required.
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!()
 	}