--- linuxsampler/trunk/src/network/lscp.y 2004/03/05 13:46:15 35 +++ linuxsampler/trunk/src/network/lscp.y 2004/04/26 17:15:51 53 @@ -62,10 +62,11 @@ %token ALSA JACK %type volume -%type sampler_channel instrument_index udp_port audio_output_channel midi_input_channel midi_input_type +%type sampler_channel instrument_index udp_port audio_output_channel midi_input_channel %type string alpha_num_string filename engine_name session_id midi_input_port command get_instruction load_instruction set_chan_instruction load_instr_args load_engine_args %type buffer_size_type %type audio_output_type +%type midi_input_type %start input @@ -111,7 +112,7 @@ | AUDIO_OUTPUT_TYPE SP sampler_channel SP audio_output_type { $$ = LSCPSERVER->SetAudioOutputType($5, $3); } | MIDI_INPUT_PORT SP sampler_channel SP midi_input_port { $$ = LSCPSERVER->SetMIDIInputPort($5, $3); } | MIDI_INPUT_CHANNEL SP sampler_channel SP midi_input_channel { $$ = LSCPSERVER->SetMIDIInputChannel($5, $3); } - | MIDI_INPUT_TYPE SP sampler_channel SP midi_input_type { $$ = "Err:0:Not implemented yet\r\n"; } + | MIDI_INPUT_TYPE SP sampler_channel SP midi_input_type { $$ = LSCPSERVER->SetMIDIInputType($5, $3); } | VOLUME SP sampler_channel SP volume { $$ = LSCPSERVER->SetVolume($5, $3); } ; @@ -129,7 +130,7 @@ | JACK { $$ = audio_output_type_jack; } ; -midi_input_type : ALSA { $$ = ALSA; } +midi_input_type : ALSA { $$ = midi_input_type_alsa; } ; volume : DOTNUM