If anyone is interested, I cloned the project over to Github, and modified it to read ~1MB of data from /dev/random and loop over that. It cut down on the cpu utilization significantly (from 5-6% on my macbook pro to 0.5-0.7%)
You can get it from the download section of my project page, here:
http://github.com/justfalter/noisy
or you can download it directly here:
http://cloud.github.com/downloads/justfalter/noisy/Noisy.app.zip
I changed the random number generator from a simple mathematical formula to using the Unix /dev/random file. Although /dev/random produces more random data, it is also more computational intensive.
I can't really hear a difference between the simple formula and /dev/random, so I will change it back in the next release :)
It is also possible that the new CoreAudio APIs in Leopard are using more CPU. Let me check on that as well.
Is it *absolutely necessary* for a white noise generator to be 10.5 only?? I find it pretty hard to believe that this is using any features of the OS not found in earlier versions.
Noisy is based on Noise's source base. Both use CoreAudio to generate the white/pink noise.
However, the APIs used by Noise were deprecated in Leopard and replaced with new functions. Noisy could continue to use these old functions, but doing so might unexpectedly break Noisy in the future.
If you want a noise generator for Tiger, check out Noise. I believe that somebody posted a link to a Universal version.
+3
+3
You can get it from the download section of my project page, here:
http://github.com/justfalter/noisy
or you can download it directly here:
http://cloud.github.com/downloads/justfalter/noisy/Noisy.app.zip
+23
+2
+2
I changed the random number generator from a simple mathematical formula to using the Unix /dev/random file. Although /dev/random produces more random data, it is also more computational intensive.
I can't really hear a difference between the simple formula and /dev/random, so I will change it back in the next release :)
It is also possible that the new CoreAudio APIs in Leopard are using more CPU. Let me check on that as well.
+23
Thanks!
+4
+2
However, the APIs used by Noise were deprecated in Leopard and replaced with new functions. Noisy could continue to use these old functions, but doing so might unexpectedly break Noisy in the future.
If you want a noise generator for Tiger, check out Noise. I believe that somebody posted a link to a Universal version.
+94