A metronome app in C#
-
I'd like to write a metronome application in C#. What Timer class would you recommend for accurate time-keeping. I also plan on using DirectSound to play the WAV files representing the ticks. Does this impose a significant overhead? If you know of code for a metronome app in C#, I'd appreciate it. This would only be for personal reference. I will not copy the code and use it in my app.
-
I'd like to write a metronome application in C#. What Timer class would you recommend for accurate time-keeping. I also plan on using DirectSound to play the WAV files representing the ticks. Does this impose a significant overhead? If you know of code for a metronome app in C#, I'd appreciate it. This would only be for personal reference. I will not copy the code and use it in my app.
NietzscheDisciple wrote: What Timer class would you recommend for accurate time-keeping. Just the normal one will be fine. NietzscheDisciple wrote: I also plan on using DirectSound to play the WAV files representing the ticks. Does this impose a significant overhead? What on earth for ? Why rely on Direct Sound to play a simple sound file - it's overkill. And DirectSound is used in games that are doing a lot more than firing a timer, I doubt it will bring your app to it's knees if you use it :-) Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
-
NietzscheDisciple wrote: What Timer class would you recommend for accurate time-keeping. Just the normal one will be fine. NietzscheDisciple wrote: I also plan on using DirectSound to play the WAV files representing the ticks. Does this impose a significant overhead? What on earth for ? Why rely on Direct Sound to play a simple sound file - it's overkill. And DirectSound is used in games that are doing a lot more than firing a timer, I doubt it will bring your app to it's knees if you use it :-) Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
Thanks for the reply, Christian. I've done some DirectSound programming and it's pretty neat. My apprehension was that the SecondaryBuffer wouldn't clear "cleanly enough" for this application. Esp. if the metronome was going at 180 bpm+.
-
I'd like to write a metronome application in C#. What Timer class would you recommend for accurate time-keeping. I also plan on using DirectSound to play the WAV files representing the ticks. Does this impose a significant overhead? If you know of code for a metronome app in C#, I'd appreciate it. This would only be for personal reference. I will not copy the code and use it in my app.