Re: unable to populate MusicTrack (one solved, one new problem)
Re: unable to populate MusicTrack (one solved, one new problem)
- Subject: Re: unable to populate MusicTrack (one solved, one new problem)
- From: Will Benton <email@hidden>
- Date: Fri, 28 Nov 2003 10:42:56 -0600
On Nov 27, 2003, at 2:16 AM, Will Benton wrote:
Here's a code fragment that I am (incorrectly) assuming should be
populating a MusicTrack with note messages. Unfortunately, it isn't,
as far as I can tell, doing anything. (The note messages are never
added; iterating over the MusicTrack reveals no contents). What am I
doing wrong? (I'm using Panther, if that matters.)
I've (sort of) resolved this, but there's a new problem. There was a
stupid bug in my iterate-over-MusicTrack code that clearly indicated
I'd stayed up too late when I wrote it, so the track actually was
getting events.
Currently, the problem is that I can play the MusicTrack (rather, the
MusicSequence containing it) to an AU, but not to a MIDIEndpoint. I'm
checking the result codes, and everything appears successful: creating
a MIDIClient, creating a MIDIEndpoint, and associating the sequence
with that endpoint. However, using the source in an app like MIDI
Monitor or SynthTest gets me nothing. I can manually send MIDI events
to that MIDI endpoint that work, so there must be something wrong with
the way I'm setting up the MusicSequence, right?
(I tried taking the code from the PlaySequence example, but that
doesn't seem to work at all.)
thanks,
wb
---
Will Benton <email@hidden>
"Wir sind Bettler, das ist wahr"
recently updated (11/1/03) contact info at:
http://www.cs.wisc.edu/~willb/willb.vcf
_______________________________________________
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.