Added utilities to fetch ALAC properties
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-04-21 13:03:41 +02:00
parent 709fcf6e33
commit 7839cd4c1d
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

12
mp4.go
View file

@ -213,6 +213,18 @@ func NewFormatDecoder(reader io.Reader) *FormatDecoder {
}
}
func (d *FormatDecoder) GetChannels() int {
return d.handle.GetChannels()
}
func (d *FormatDecoder) GetBitDepth() int {
return d.handle.GetBitDepth()
}
func (d *FormatDecoder) GetSampleRate() int {
return d.handle.GetSampleRate()
}
func (d *FormatDecoder) Read() (buf []byte) {
if d.currentSegment >= len(d.parsedMp4.Segments) {
//EOF