• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes Visualizer updates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes Visualizer updates


  • Subject: Re: iTunes Visualizer updates
  • From: Stephen Davis <email@hidden>
  • Date: Wed, 21 Jan 2004 10:25:23 -0800

On Jan 20, 2004, at 11:38 PM, Justin Bakse wrote:

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?

Other than "call me as often as possible", the maximum frequency of calls is 60/sec -- requesting more than that gets rounded down, as you noticed.

stephen
_______________________________________________
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.

References: 
 >iTunes Visualizer updates (From: Justin Bakse <email@hidden>)

  • Prev by Date: X Multithreading vs. sounds
  • Next by Date: Re: basic HAL buffer stuff
  • Previous by thread: iTunes Visualizer updates
  • Next by thread: X Multithreading vs. sounds
  • Index(es):
    • Date
    • Thread