Writes up to frames sample frames into destination, whose last frame becomes audible at deadlineNanos.