Implemented basic FLAC support (no artwork, yet!)

This commit is contained in:
David Howden
2015-04-15 00:12:37 +10:00
parent 8aff503453
commit 4cebcae157
3 changed files with 233 additions and 0 deletions
+7
View File
@@ -5,6 +5,7 @@
package tag
import (
"encoding/binary"
"io"
)
@@ -63,3 +64,9 @@ func read7BitChunkedInt(r io.Reader, n int) (int, error) {
}
return get7BitChunkedInt(b), nil
}
func readInt32LittleEndian(r io.Reader) (int, error) {
var n int32
err := binary.Read(r, binary.LittleEndian, &n)
return int(n), err
}