Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"sync"
)

Expand Down Expand Up @@ -122,7 +121,7 @@ func (ch *Chunk) Drain() {
for bytesAhead > 0 {
readSize := int64(bytesAhead)

if _, err := io.CopyN(ioutil.Discard, ch.R, readSize); err != nil {
if _, err := io.CopyN(io.Discard, ch.R, readSize); err != nil {
return
}
bytesAhead -= int(readSize)
Expand Down
2 changes: 0 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*

Package riff is package implementing a simple Resource Interchange File Format
(RIFF) parser with basic support for sub formats such as WAV.
The goal of this package is to give all the tools needed for a developer
Expand All @@ -10,6 +9,5 @@ of a wav file can be easily accessed (See the examples below) .

For more information about RIFF:
https://en.wikipedia.org/wiki/Resource_Interchange_File_Format

*/
package riff