update linearResampleTo() and hermiteResampleTo() in ofSoundBuffer class.
update resampling code in order to fix the following bugs.
- They were crashed when end had negative number.
- They only had 2 loops with high speed resampling
.
Ping @roymacdonald
If negative values, suggests file format was signed and not unsigned, might need to convert bit shift up to get valid representation of audio and not clipped out the bottom spectrum
What input data type were you using in that example?
On Mon, 29 Aug 2022 at 1:28 am, Dimitre @.***> wrote:
Ping @roymacdonald https://github.com/roymacdonald
— Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/pull/7062#issuecomment-1229485762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGK2HBFATK52DXK5U546UTV3OAR3ANCNFSM573D2YPQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
OF uses signed floats between -1 and 1. I would rather use an external library to deal with resampling as it is non trivial. I made an addon using libsamplerate which can be ported to all platforms and it gives me correct results all the time, while the of implementation fails often. I would love to see such implemented. If you give me the gonI would be happy to implement for all platforms