core/frame: set correct duration for newly constructed audio buffer