Skip to content

Commit

Permalink
Display TOC byte
Browse files Browse the repository at this point in the history
  • Loading branch information
csiwek committed Jul 29, 2019
1 parent daa8dab commit 18df0e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opus.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ func (i *OpusReader) getPage() ([]byte, error) {
tmpPacket := make([]byte, payloadLen)
binary.Read(i.stream, binary.LittleEndian, &tmpPacket)
fmt.Printf("an audio frame\n")
//Reading the TOC byte - we need to know the frame duration.
fmt.Printf("============= TOC : % 08b \n", tmpPacket[0])
return tmpPacket, nil
}

Expand Down

0 comments on commit 18df0e1

Please sign in to comment.