GUI: implement sample sel operations

plenty of them
This commit is contained in:
tildearrow 2022-03-21 02:43:52 -05:00
parent a68dbed760
commit 2df7658fd0
3 changed files with 313 additions and 16 deletions

View file

@ -102,6 +102,24 @@ struct DivSample {
*/
bool resize(unsigned int count);
/**
* remove part of the sample data.
* @warning do not attempt to strip a sample outside of a synchronized block!
* @param start the beginning.
* @param end the end.
* @return whether it was successful.
*/
bool strip(unsigned int begin, unsigned int end);
/**
* clip the sample data to specified boundaries.
* @warning do not attempt to trim a sample outside of a synchronized block!
* @param start the beginning.
* @param end the end.
* @return whether it was successful.
*/
bool trim(unsigned int begin, unsigned int end);
/**
* change the sample rate.
* @warning do not attempt to resample outside of a synchronized block!