MusicChunk: copy AudioFormat only when chunk is empty
MusicChunk: remove special case for num_frames==0

Simply return an empty WritableBuffer, not a nulled one.
DecoderAPI: use std::min()