[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] [sc3] midi in



variable 'str' is used uninitialized here.

void JtInitMidiInput(int numIn, PyrObject * inObj );
void JtInitMidiInput(int numIn, PyrObject * inObj )
{	
    // init a midi input port by number:
    //create a c++ object and store it in sc
    MIDIPortRef myMIDIPort;
    char str[32];
    CFAllocatorRef alloc = CFAllocatorGetDefault();
CFStringRef inputPortName = CFStringCreateWithCString(alloc, str, kCFStringEncodingMacRoman);