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

Re: MusicEventIteratorHasNextEvent


  • Subject: Re: MusicEventIteratorHasNextEvent
  • From: William Stewart <email@hidden>
  • Date: Thu, 23 Oct 2003 13:11:18 -0700

There's comments in the header for this (MusicPlayer.h)... basically:
// New Iterator (points at first event)
// bool hasCurrentEvent;
// MusicEventIteratorHasCurrentEvent(iter, &hasCurrentEvent);
// while (hasCurrentEvent) {
// do work... MusicEventIteratorGetEventInfo (iter, ...
//
// MusicEventIteratorNextEvent (iter)
// MusicEventIteratorHasCurrentEvent(iter, &hasCurrentEvent);
// }


// Or to go back...
// New Iterator
// MusicEventIteratorSeek (iter, kMusicTimeStamp_EndOfTrack) -> will
point it past the last event
//
// while (MusicEventIteratorPreviousEvent (iter) == noErr) {
// do work... MusicEventIteratorGetEventInfo (iter, ...
//
// }

Bill

On 23/10/2003, at 11:49 AM, Craig Bakalian wrote:

> Hi,
> Well, it is easier than I thought, yet is this the standard way to
> walk through the events?
>
> MusicEventIterator events;
> NewMusicEventIterator(track, &events);
> Boolean b;
> MusicEventIteratorHasNextEvent(events, &b);
> while(b)
> {
> MusicEventIteratorHasNextEvent(events, &b);
> MusicEventIteratorNextEvent(events);
> }
>
>
> Craig Bakalian
> www.eThinkingCap.com
> _______________________________________________
> 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.
>
>
--
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
________________________________________________________________________
__
_______________________________________________
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: 
 >MusicEventIteratorHasNextEvent (From: Craig Bakalian <email@hidden>)

  • Prev by Date: Re: MusicEventIteratorHasNextEvent
  • Next by Date: Re: AudioDevice AudioChannelLayout
  • Previous by thread: MusicEventIteratorHasNextEvent
  • Next by thread: 'vectors' of AudioUnit Parameters
  • Index(es):
    • Date
    • Thread