• 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: Speeding up MusicPlayerStart()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speeding up MusicPlayerStart()?


  • Subject: Re: Speeding up MusicPlayerStart()?
  • From: William Stewart <email@hidden>
  • Date: Mon, 10 Oct 2005 12:42:53 -0700

Right

The delay you are seeing is how long it is taking to start the actual hardware.

What I'd suggest is the following:

Preroll
    - AUGraphStart
    - MusicPlayerPreroll

"Start"
    - MusicPlayerStart

"Stop"
    - MusicPlayerStop
    - AUGraphStop

If you do it this way, then when someone is using your media handler will NOT have their computer consuming cycles when they aren't actually playing the movie

Bill

On 10/10/2005, at 8:53 AM, Edwin Vane wrote:

After finding example code for MusicPlayer in the AUViewTest I noticed
that by creating the graph with a DLSSynth in it yourself and using
AUGraphStart(), when you call MusicPlayerStart() later the delay is less than
1ms.


On Sun, Oct 09, 2005 at 12:46:51PM -0400, Edwin Vane wrote:

Hi,

I've been looking at the MusicPlayer API. I find that calling
MusicPlayerStart() can take about 1s to complete (measured using a pair
of calls to the host time retrieval functions). I was hoping to use
MusicPlayer inside QuickTime (specifically inside a derived media
handler to play midi data). However, using Start and Stop for play and
stop in quicktime doesn't seem like a good idea if it incurs a second
delay (which may cause tracks to become unsynchronized). Is there a way
to speed up MusicPlayerStart() or some other method to implement start
and stop of music without incurring the delay? Or should I look into
some sort of workaround (setting a NULL sequence perhaps, although I
haven't tried that).


--

Edwin Vane
   MMath Candidate
   Computer Graphics Lab
   School of Computer Science
   University of Waterloo

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40uwaterloo.ca


This email sent to email@hidden



--

Edwin Vane
   MMath Candidate
   Computer Graphics Lab
   School of Computer Science
   University of Waterloo

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Speeding up MusicPlayerStart()? (From: Edwin Vane <email@hidden>)
 >Re: Speeding up MusicPlayerStart()? (From: Edwin Vane <email@hidden>)

  • Prev by Date: Re: [Semi-OT] Gestures in Cocoa AU Views
  • Next by Date: Re: Audio Units - newbie questions
  • Previous by thread: Re: Speeding up MusicPlayerStart()?
  • Next by thread: [Semi-OT] Gestures in Cocoa AU Views
  • Index(es):
    • Date
    • Thread