1
Audio / Re: how to cut the end of a sound?
« on: May 07, 2015, 11:12:38 pm »
Nevermind, I just solved it myself:
buffer.getSamples() + cut determines the starting position of the new buffer. So of course I just want buffer.getSamples() here to start from the beginning (and not cut the beginning.
buffer.getSampleCount() - cut is the number of remaining samples. If I didn't cut in the beginning by not adding cut to the starting point, it will cut the audio at the end, just like intented.
cheers,
Temophor
buffer.getSamples() + cut determines the starting position of the new buffer. So of course I just want buffer.getSamples() here to start from the beginning (and not cut the beginning.
buffer.getSampleCount() - cut is the number of remaining samples. If I didn't cut in the beginning by not adding cut to the starting point, it will cut the audio at the end, just like intented.
cheers,
Temophor