Sample rate change
Sample rate change
- Subject: Sample rate change
- From: "Andreas Falkenhahn" <email@hidden>
- Date: Sun, 26 Aug 2007 23:34:21 +0200
Hi,
how could I change the sample rate of a sound while it is playing on a mixer
bus? I saw in the includes that the 3DMixer supports a parameter to change
the sample rate on the fly, but I'm currently using the StereoMixer because I
don't need the 3D stuff. I'm already doing sample rate conversion in the
StereoMixer using an audio converter in my render proc, but how should I
change the sample rate of a playing sample? This would require a new
audio converter AFAICS!
So the only idea that comes to my mind is to stop the render proc on that
bus, dispose of the old audio converter, create a new audio converter with
the new sample rate, and restart the render proc on the required bus. I
haven't tried this approach yet, but I could imagine that it would cause a
certain crack to be audible, because I'm temporarily stopping playback.
So I'm wondering what I should do? Should I go with this approach, or
is there a better one? Or should I abandon the StereoMixer completely
and go with the 3DMixer which seems to support sample rate change
on the fly?
Tks for any opinions
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden