frame: Add two additional panics while trouble-shooting.
This commit is contained in:
parent
7a54bca667
commit
abd8be75fc
|
@ -228,6 +228,7 @@ func NewHeader(r io.Reader) (hdr *Header, err error) {
|
|||
// 000: get from STREAMINFO metadata block.
|
||||
// TODO(u): Should we try to read StreamInfo from here? We won't always
|
||||
// have access to it.
|
||||
panic("not yet implemented; bits-per-sample 0")
|
||||
log.Println(fmt.Errorf("not yet implemented; sample size spec: %d", n))
|
||||
case 1:
|
||||
// 001: 8 bits per sample.
|
||||
|
@ -345,6 +346,7 @@ func NewHeader(r io.Reader) (hdr *Header, err error) {
|
|||
case 0:
|
||||
// 0000: get from STREAMINFO metadata block.
|
||||
// TODO(u): Add flag to get from StreamInfo?
|
||||
panic("not yet implemented; sample rate 0")
|
||||
log.Println(fmt.Errorf("not yet implemented; sample rate: %d", n))
|
||||
case 1:
|
||||
//0001: 88.2kHz.
|
||||
|
|
Loading…
Reference in a new issue