ResamplingAudioSource and AudioSampleBuffer?

I was wondering if there is a way to use ResamplingAudioSource on a block of AudioSampleBuffer without needing to use AudioTransportSource? ResamplingAudioSource requires an audiosource, so how can I do this? Code example would be appreciated. Cheers.

Well yes - you'd just need to call prepareToPlay and getNextAudioBlock to do the processing, just like you would on a live buffer.