Added utilities to fetch ALAC properties
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
709fcf6e33
commit
7839cd4c1d
12
mp4.go
12
mp4.go
|
@ -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) {
|
func (d *FormatDecoder) Read() (buf []byte) {
|
||||||
if d.currentSegment >= len(d.parsedMp4.Segments) {
|
if d.currentSegment >= len(d.parsedMp4.Segments) {
|
||||||
//EOF
|
//EOF
|
||||||
|
|
Loading…
Reference in a new issue