mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
parent
bf5dbc60cf
commit
610b6743be
1 changed files with 8 additions and 8 deletions
|
@ -280,29 +280,29 @@ fluid_sequencer_add_midi_event_to_buffer(void* data, fluid_midi_event_t* event)
|
|||
|
||||
switch (fluid_midi_event_get_type(event)) {
|
||||
case NOTE_OFF:
|
||||
fluid_event_noteoff(&evt, chan, fluid_midi_event_get_key(event));
|
||||
fluid_event_noteoff(&evt, chan, (short)fluid_midi_event_get_key(event));
|
||||
break;
|
||||
case NOTE_ON:
|
||||
fluid_event_noteon(&evt, fluid_midi_event_get_channel(event),
|
||||
fluid_midi_event_get_key(event), fluid_midi_event_get_velocity(event));
|
||||
(short)fluid_midi_event_get_key(event), (short)fluid_midi_event_get_velocity(event));
|
||||
break;
|
||||
case CONTROL_CHANGE:
|
||||
fluid_event_control_change(&evt, chan, fluid_midi_event_get_control(event),
|
||||
fluid_midi_event_get_value(event));
|
||||
fluid_event_control_change(&evt, chan, (short)fluid_midi_event_get_control(event),
|
||||
(short)fluid_midi_event_get_value(event));
|
||||
break;
|
||||
case PROGRAM_CHANGE:
|
||||
fluid_event_program_change(&evt, chan, fluid_midi_event_get_program(event));
|
||||
fluid_event_program_change(&evt, chan, (short)fluid_midi_event_get_program(event));
|
||||
break;
|
||||
case PITCH_BEND:
|
||||
fluid_event_pitch_bend(&evt, chan, fluid_midi_event_get_pitch(event));
|
||||
break;
|
||||
case CHANNEL_PRESSURE:
|
||||
fluid_event_channel_pressure(&evt, chan, fluid_midi_event_get_program(event));
|
||||
fluid_event_channel_pressure(&evt, chan, (short)fluid_midi_event_get_program(event));
|
||||
break;
|
||||
case KEY_PRESSURE:
|
||||
fluid_event_key_pressure(&evt, chan,
|
||||
fluid_midi_event_get_key(event),
|
||||
fluid_midi_event_get_value(event));
|
||||
(short)fluid_midi_event_get_key(event),
|
||||
(short)fluid_midi_event_get_value(event));
|
||||
break;
|
||||
case MIDI_SYSTEM_RESET:
|
||||
fluid_event_system_reset(&evt);
|
||||
|
|
Loading…
Reference in a new issue