-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift crash/Obj-C warning when setting numerator on MIKMutableMIDIMetaTimeSignatureEvent #57
Comments
So the Objective-C actually gets past the |
Nice catch. I'll fix this tomorrow morning (if you don't get to it before me).
|
…IDIEventSomeSubclass init] correct sets event type. Passing nil data to full initializer also works now.
…y the minimum internal data size they require.
Should be fixed. |
The following Objective-C:
Yields the following warning in the console:
but does not crash. The following Swift:
Raises an
NSRangeException
:The length of the range (4026531840) is different every time I run it.
MIKMutableMIDIMetaTimeSignatureEvent, MIKMIDIMetaTimeSignatureEvent and MIKMIDIMetaEvent all don't have constructors, so it falls all the way back to MIKMIDIEvent, and initializes as a NULL event type with empty
internalData
. So when it accessesmetadata
, itsdataLength
is a garbage value. Or at least I think that's what's going on.The text was updated successfully, but these errors were encountered: