Skip to content

Commit

Permalink
README: Correct frame size for stereo decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
hraban committed Oct 10, 2016
1 parent c6de5af commit 6db54ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Now pass it the opus bytes, and a buffer to store the PCM sound in:

```go
var frame_size_ms float32 = ... // if you don't know, go with 60 ms.
frame_size := frame_size_ms * sample_rate / 1000
frame_size := channels * frame_size_ms * sample_rate / 1000
pcm := make([]byte, int(frame_size))
n, err := dec.Decode(data, pcm)
if err != nil {
Expand Down

0 comments on commit 6db54ef

Please sign in to comment.