• 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: MusicPlayer Preroll questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicPlayer Preroll questions


  • Subject: Re: MusicPlayer Preroll questions
  • From: William Stewart <email@hidden>
  • Date: Fri, 6 Jan 2006 12:39:36 -0800


On 06/01/2006, at 12:03 AM, Edwin Vane wrote:

Hi,

I've seen somewhere that MusicPlayerPreroll() prepares playback by
silently setting up MIDI state so notes in the middle of sounding are
sounding when playback resumes. Is this correct?

Nope - it won't start notes after doing set time that occur before the new time.


What it does do is re-establish the controller and pitch bend states for that time.


I'm having a strange issue that may relate to this. I play a music sequence and stop it in the middle of playing a long note (a string instrument so there's no decay). I stop the player *and* the AUGraph. Then, when it comes time to preroll, I use SetTime to set the new playback location, start the augraph, and call MusicPlayerPreroll(). Then I just start the MusicSequence again. Without fail, if the new playback location is after all events, the long note continues to play forever. However, if I don't do the MusicPlayerPreroll then the sound doesn't continue. Am I setting something incorrectly?

I think we might have a bug here - I would certainly appreciate a bugreport with a reproducible case and then I can really see what is going on.


One thing you can try is this. Before you call preroll, call AudioUnitReset on the synth - that will make sure that any hanging notes it might have are turned off (and controller state is set to defaults). Then preroll will establish the right state.

Bill



--

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


  • Follow-Ups:
    • Re: MusicPlayer Preroll questions
      • From: Edwin Vane <email@hidden>
References: 
 >MusicPlayer Preroll questions (From: Edwin Vane <email@hidden>)

  • Prev by Date: Re: Correct API to implement a timer in a real-time thread
  • Next by Date: Audio Unit Project Template
  • Previous by thread: Re: MusicPlayer Preroll questions [CORRECTION]
  • Next by thread: Re: MusicPlayer Preroll questions
  • Index(es):
    • Date
    • Thread