iTunes Visualizer updates
iTunes Visualizer updates
- Subject: iTunes Visualizer updates
- From: Justin Bakse <email@hidden>
- Date: Wed, 21 Jan 2004 01:38:39 -0600
Hello List.
I'm not sure if anyone here is familiar with iTunes Visulizers as it's
not really core audio, but it looked like a good first place to ask.
I'm starting work on my second iTunes Visualizer (after Volcano Kit
iTunes Visualizer) and i want to make sure I'm right-headed in my
understanding.
In particular i'm experimenting with values for timeBetweenDataInMS,
which controls how often iTunes asks the plugin to render. As noted if
i set it to 16 i get asked 60 times a second, and if i set it to
0xFFFFFFFF i get asked as much as possible. (which is very very often,
as even if i get called alot i only draw every 30th of a second, and
the rest of time i just return)
Heres is the problem, values greater than 16 seem to work as i would
guess: 32 is 30fps; 64 is 15fps.
But values less than 16 all seem to cause it tunes to call 60 times a
second.
I'd like to be somewhere in the middle because i want to do processing
more often than 60 fps (just checking fft, even if i only render every
so often) But if i set it to 0xFFFFFFFF and do it as much as possible,
it burns processor even just to return.
Any idea why values less then 16 don't work as expected? Any
suggestions how to keep the 0xFF setting from eating so much processor,
could i sleep?
-justin
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.