Login / Register  0 items | $0.00New @ What is KVR? Submit News Advertise

AU sample rate change

DSP, Plug-in and Host development discussion.

Moderator: Moderators (Main)

gbrules
KVRer
 
11 posts since 3 Oct, 2012

Postby gbrules; Tue Nov 13, 2012 3:55 pm AU sample rate change

Quick question that I can't find the answer to. When an audio unit is already open and running, if the host changes the sample rate how does it notify the audio unit? Does it call Initialize() and it's up to me to change my internal code as necessary?

Thanks
GW
LemonLime
KVRist
 
229 posts since 15 Apr, 2012, from Toronto, ON

Postby LemonLime; Tue Nov 13, 2012 4:58 pm

Call GetSampleRate() within the kernel constructor and you'll get the updated sample rate if there was a change in the host.
gbrules
KVRer
 
11 posts since 3 Oct, 2012

Postby gbrules; Tue Nov 13, 2012 5:02 pm

Oh, so it completely reallocs the whole plugin? huh, that seems a bit heavy but makes sense.

Thanks for the reply
GW

Moderator: Moderators (Main)

Return to DSP and Plug-in Development