As NoufardN, I’m currently trying to code a kind of music tracker, using FMOD Ex (wxWidgets and a C++ IDE)
THere’s a screenshot at (in FR)
My actual problem is, as it’s a musical application, the processing timings (tick delay etc) must be as small as possible, and FMOD reactivity the best possible.
Thus, I have two questions :
– Is it better initializing FMOD using really small buffer sizes and is it suitable for any ‘recent’ computer ? Should this setting be reviewed ? (In my code I set the sound system with 64 chunks of 128 samples)
- Which is the best/good/only choice to achieve 1ms accuracy in a Win32 program ? Using a thread or a timer ?
Thanks for your help,
- artscoop asked 13 years ago
Thank you NoufardN and KarLKoX.
I’m going to look at your links, investigate and feedback. Stay tuned.
OK, so there’s an excellent article on various Windows timers at
Says that accurate timers should be multimedia timers or queue timers. Queue timers are only available on Windows 2000, XP, Server2003, so their application depends on the platforms you target.
Thank you Brett for the advice, I’ll do that.
But the second question still remains unanswered, that is, (but is not 100% related to FMODEx) how can I make my program call a function exactly every millisecond (at least less than 15ms) ? (for example, for setting the frequency of a channel, muting it, etc.)
Please login first to submit.