processing-sound
processing-sound copied to clipboard
update AudioSample
Allow reference of new instance of AudioSample so we can call .amp() function on it.
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!