wav icon indicating copy to clipboard operation
wav copied to clipboard

Alternate design for encode/decode

Open egonelbre opened this issue 8 years ago • 1 comments
trafficstars

I noticed this: https://github.com/go-audio/wav/blob/master/decoder.go#L343

While developing my quick-hack audio decoder for WAV I ended up, IMHO, a neat design for decoding the buffer:

  • https://github.com/loov/audio/blob/master/codec/wav/reader.go#L82
  • https://github.com/loov/audio/blob/master/codec/wav/wavdata/format.go#L166

Maybe you can get new ideas from it -- or find better approaches based on it.

egonelbre avatar Jul 14 '17 15:07 egonelbre

I really like the suggested approach

mattetti avatar Jul 15 '17 05:07 mattetti