0
0

Hello all,

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)
http://artscoop93.club.fr/Image/Frostprogress.PNG

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,

  • You must to post comments
0
0

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.)
Thanks

  • You must to post comments
0
0

hi Artscoop, I think you can do it with multimedia timers – check out my post in http://52.88.2.202/forum/viewtopic.php?t=4528

  • You must to post comments
0
0

An what about events ? ([url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setevent.asp:1kfj7krv]SetEvent[/url:1kfj7krv])
Btw, you are coding a nice tracker artscoop 😮

  • You must to post comments
0
0

Thank you NoufardN and KarLKoX.
I’m going to look at your links, investigate and feedback. Stay tuned.

Edit :
OK, so there’s an excellent article on various Windows timers at
http://www.codeproject.com/system/timers_intro.asp

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.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.