processing-sound icon indicating copy to clipboard operation
processing-sound copied to clipboard

update AudioSample

Open trackme518 opened this issue 2 years ago • 1 comments

Allow reference of new instance of AudioSample so we can call .amp() function on it. 385537290_1713129859097902_6896483319543280360_n 405592024_1154903345470799_7816452084975749997_n

trackme518 avatar Dec 08 '23 18:12 trackme518

Hello,

thanks for the pull requests! As you probably saw this is some old code where I could never make up my mind about how to return from the method... I'm happy to merge your changes, only I don't think the code currently compiles because the return type of play() will need to be changed from void to AudioSample?

By the way there is a whole audiosample-playmodes branch which adds the option to control what happens when calling play() on a sample that is already playing, if this would be interesting for you I will try to get it merged soon...

Best!

kevinstadler avatar Dec 08 '23 19:12 kevinstadler