It would be nice to change get_audio_buffer() to not set AudioBuffer::_written to false (all but one other user of this API also only get read-only data), but that requires chaning the rationale of the underlying ::set_data() API.