Skip to content

Commit

Permalink
Exposed Samplerate
Browse files Browse the repository at this point in the history
  • Loading branch information
csiwek committed Aug 8, 2019
1 parent 455df95 commit 8f7d1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opus.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const DEFAULT_BUFFER_FOR_PLAYBACK_MS = 2500
type OpusReader struct {
stream io.Reader
fd *os.File
sampleRate uint32
SampleRate uint32
Channels uint8
serial uint32
pageIndex uint32
Expand Down Expand Up @@ -89,7 +89,7 @@ func (i *OpusReader) readOpusHead() error {
if err := binary.Read(i.stream, binary.LittleEndian, &preSkip); err != err {
return err
}
if err := binary.Read(i.stream, binary.LittleEndian, &i.sampleRate); err != err {
if err := binary.Read(i.stream, binary.LittleEndian, &i.SampleRate); err != err {
return err
}
//Skipping OutputGain
Expand Down

0 comments on commit 8f7d1c7

Please sign in to comment.