Use avcodec_decode_audio4
Measure sample width in bytes
Support planar sample formats (fixes #44)
Fix a compiler warning