@@ -181,7 +181,7 @@ static void CALLBACK MidiInProc(HMIDIIN hMidiIn, UINT wMsg, DWORD dwInstance, DW
181
181
Midi_Push_Buffer (midi_port .inp_buffer , dwParam2 );
182
182
evt .type = EVT_READ ;
183
183
evt .data = dwParam1 ;
184
- RL_UPDATE_EVENT (& evt );
184
+ RL_Update_Event (& evt );
185
185
break ;
186
186
#ifdef DEBUG_MIDI
187
187
case MIM_LONGDATA :
@@ -368,8 +368,8 @@ static void PrintMidiDevices()
368
368
}
369
369
}
370
370
if (device_in ) {
371
- midi_port -> inp_buffer = RL_MAKE_STRING (MIDI_BUF_SIZE - 1 , FALSE); // allocate input binary ...
372
- RL_PROTECT_GC (midi_port -> inp_buffer , TRUE); // ... and prevent it from GC
371
+ midi_port -> inp_buffer = RL_Make_String (MIDI_BUF_SIZE - 1 , FALSE); // allocate input binary ...
372
+ RL_Protect_GC (midi_port -> inp_buffer , TRUE); // ... and prevent it from GC
373
373
midi_port -> inp_buffer -> size = MIDI_BUF_SIZE ; // ... and init it for use as circular buffer
374
374
midi_port -> inp_buffer -> rest = 0 ; // rest is used as readers TAIL
375
375
}
@@ -392,7 +392,7 @@ static void PrintMidiDevices()
392
392
midiInClose (midi_port -> inp_device );
393
393
midi_port -> inp_device = NULL ;
394
394
}
395
- if (midi_port -> inp_buffer ) RL_PROTECT_GC (midi_port -> inp_buffer , FALSE);
395
+ if (midi_port -> inp_buffer ) RL_Protect_GC (midi_port -> inp_buffer , FALSE);
396
396
if (midi_port -> out_device ) {
397
397
midiOutClose (midi_port -> out_device );
398
398
midi_port -> out_device = NULL ;
@@ -494,18 +494,18 @@ static void PrintMidiDevices()
494
494
nMidiDeviceNum = midiInGetNumDevs ();
495
495
for (i = 0 ; i < nMidiDeviceNum ; ++ i ) {
496
496
midiInGetDevCaps (i , & capsInp , sizeof (MIDIINCAPS ));
497
- arg .series = RL_ENCODE_UTF8_STRING (capsInp .szPname , wcslen (capsInp .szPname ), TRUE, FALSE);
497
+ arg .series = RL_Encode_UTF8_String (capsInp .szPname , wcslen (capsInp .szPname ), TRUE, FALSE);
498
498
arg .index = 0 ;
499
- RL_SET_VALUE (VAL_SERIES (val ), i , arg , RXT_STRING );
499
+ RL_Set_Value (VAL_SERIES (val ), i , arg , RXT_STRING );
500
500
}
501
501
//output devices block
502
502
val = FRM_VALUES ((REBSER * )req -> data ) + 2 ;
503
503
nMidiDeviceNum = midiOutGetNumDevs ();
504
504
for (i = 0 ; i < nMidiDeviceNum ; ++ i ) {
505
505
midiOutGetDevCaps (i , & capsOut , sizeof (MIDIOUTCAPS ));
506
- arg .series = RL_ENCODE_UTF8_STRING (capsOut .szPname , wcslen (capsOut .szPname ), TRUE, FALSE);
506
+ arg .series = RL_Encode_UTF8_String (capsOut .szPname , wcslen (capsOut .szPname ), TRUE, FALSE);
507
507
arg .index = 0 ;
508
- RL_SET_VALUE (VAL_SERIES (val ), i , arg , RXT_STRING );
508
+ RL_Set_Value (VAL_SERIES (val ), i , arg , RXT_STRING );
509
509
}
510
510
return DR_DONE ;
511
511
}
0 commit comments