► Api Changes + Fixes In 2.6 Rc1

[added] sample_buffer:prepare_sample_data_changes as companion to sample_buffer:finalize_sample_data_changes

prepare_sample_data_changes will ensure that Renoise creates undo data for sample buffer changes correctly, but only does something if you are changing sample data without creating a new sample buffer.

Please have a look at the SampleBuffer code snippets for example how to create a new sample buffer or change an existing one:

NOT calling finalize_sample_data_changes is allowed, but may result into bogus undo, so please update all relevant tools where necessary.