From d19e42a723231d63da777d51a3b036683b42e702 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 26 Jun 2014 04:35:27 -0700 Subject: Don't require MIDI sysex data to have the high bit clear --- OpenAL32/alMidi.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'OpenAL32/alMidi.c') diff --git a/OpenAL32/alMidi.c b/OpenAL32/alMidi.c index 6313523e..015b1915 100644 --- a/OpenAL32/alMidi.c +++ b/OpenAL32/alMidi.c @@ -101,18 +101,12 @@ AL_API void AL_APIENTRY alMidiSysExSOFT(ALuint64SOFT time, const ALbyte *data, A ALCdevice *device; ALCcontext *context; ALenum err; - ALsizei i; context = GetContextRef(); if(!context) return; if(!data || size < 0) SET_ERROR_AND_GOTO(context, AL_INVALID_VALUE, done); - for(i = 0;i < size;i++) - { - if((data[i]&0x80)) - SET_ERROR_AND_GOTO(context, AL_INVALID_VALUE, done); - } device = context->Device; ALCdevice_Lock(device); -- cgit v1.2.3