core/frame: add truncate() for NAAudioBuffer