MusicDeviceStartNote integer or float notes
MusicDeviceStartNote integer or float notes
- Subject: MusicDeviceStartNote integer or float notes
- From: Marc Poirier <email@hidden>
- Date: Wed, 5 Nov 2003 17:50:34 -0600 (CST)
In the AU API docs for MusicDeviceStartNote, it explains the different
behavior expectations for when MusicDeviceNoteParams.mPitch value is
integer vs. when it's floating point:
"The returned NoteInstanceID will follow the following convention. If the
supplied note number (which is by convention the first value that is
passed in in the inParams struct is an integral number, then the returned
noteID will be that integer. If the note number is a floating point
number, then a randomly created uniqueID will be returned. Thus, if you're
using this function with integral note numbers, then that same note number
can be used to turn the note off on that group."
But... I don't get it. The value in the MusicDeviceStartNote struct is
floating point. It's an extensible struct though, so I'm think that this
might either mean:
1) you can cast the values to integer and read them that way or
2) you decide based on whether there is any fractional value content in
the value.
If it's 1, then I'm wondering how I'm supposed to be able to tell whether
I should do that.
Thanks for any insight,
Marc
_______________________________________________
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.