Yep, for buffer its doable; will change that, though, malloc/free is probably negligible in comparison to the resampling/transcoding process :)