Skip to content

Commit

Permalink
remove the Reset method since it's unused & incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
mattetti committed Dec 12, 2017
1 parent cb16b6f commit 14db70a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,6 @@ func (d *Decoder) ReadMetadata() {

}

// Reset resets the decoder (and rewind the underlying reader)
func (d *Decoder) Reset() {
d.err = nil
d.pcmDataAccessed = false
d.NumChans = 0
d.BitDepth = 0
d.SampleRate = 0
d.AvgBytesPerSec = 0
d.WavAudioFormat = 0
d.PCMSize = 0
d.r.Seek(0, 0)
d.PCMChunk = nil
d.parser = riff.New(d.r)
}

// FwdToPCM forwards the underlying reader until the start of the PCM chunk.
// If the PCM chunk was already read, no data will be found (you need to rewind).
func (d *Decoder) FwdToPCM() error {
Expand Down

0 comments on commit 14db70a

Please sign in to comment.