Hello,
My situation is, I need to detect changes in the sample rate of audio being played back.
This is because, I am intending to use MC with an external audio system that has a global master clock. The computer's sound card syncs to this external master clock. So, if MC changes sample rates (ie, we were playing a 44.1khz CD, and now it is time to play some 48 or 96 khz) the master clock must change.
Basically, I just need to detect when a new track starts, check and see if we are changing the sample rate, and if so send a few bytes out the serial port, no big deal really. Although if there were some way to 'lock' MC for an instant, to give time for the soundcard to synch to the new signal, that would be IDEAL. If it's not possible, having some slight corruption in the first instant after changing sample rates isn't a big deal, as it shouldn't really happen too often.
Any idea on what sort of plugin to use? Or how complex this will be?
Thanks for any ideas/help!