/[svn]/linuxsampler/trunk/src/network/lscp.y
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/lscp.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 135 by senkov, Sun Jun 20 16:01:50 2004 UTC revision 141 by senkov, Mon Jun 21 01:21:33 2004 UTC
# Line 54  void yyerror(const char* s); Line 54  void yyerror(const char* s);
54  %token <Number> NUMBER  %token <Number> NUMBER
55  %token <String> STRINGVAL  %token <String> STRINGVAL
56  %token SP LF CR HASH EQ  %token SP LF CR HASH EQ
57  %token ADD GET CREATE DESTROY LIST LOAD LOAD_BACKGROUND REMOVE SET SUBSCRIBE UNSUBSCRIBE RESET QUIT  %token ADD GET CREATE DESTROY LIST LOAD NON_MODAL REMOVE SET SUBSCRIBE UNSUBSCRIBE RESET QUIT
58  %token CHANNEL NOTIFICATION  %token CHANNEL NOTIFICATION
59  %token AVAILABLE_ENGINES AVAILABLE_AUDIO_OUTPUT_DRIVERS CHANNELS INFO BUFFER_FILL STREAM_COUNT VOICE_COUNT  %token AVAILABLE_ENGINES AVAILABLE_AUDIO_OUTPUT_DRIVERS CHANNELS INFO BUFFER_FILL STREAM_COUNT VOICE_COUNT
60  %token INSTRUMENT ENGINE  %token INSTRUMENT ENGINE
# Line 98  command               :  ADD SP CHANNEL Line 98  command               :  ADD SP CHANNEL
98                        |  DESTROY SP destroy_instruction             { $$ = $3;                                        }                        |  DESTROY SP destroy_instruction             { $$ = $3;                                        }
99                        |  LIST SP list_instruction                   { $$ = $3;                                        }                        |  LIST SP list_instruction                   { $$ = $3;                                        }
100                        |  LOAD SP load_instruction                   { $$ = $3;                                        }                        |  LOAD SP load_instruction                   { $$ = $3;                                        }
                       |  LOAD_BACKGROUND SP load_instruction        { $$ = $3;                                        }  
101                        |  REMOVE SP CHANNEL SP sampler_channel       { $$ = LSCPSERVER->RemoveChannel($5);             }                        |  REMOVE SP CHANNEL SP sampler_channel       { $$ = LSCPSERVER->RemoveChannel($5);             }
102                        |  SET SP set_instruction                     { $$ = $3;                                        }                        |  SET SP set_instruction                     { $$ = $3;                                        }
103                        |  SUBSCRIBE SP subscribe_event               { $$ = $3;                                        }                        |  SUBSCRIBE SP subscribe_event               { $$ = $3;                                        }
# Line 146  set_instruction       :  AUDIO_OUTPUT_DE Line 145  set_instruction       :  AUDIO_OUTPUT_DE
145                        ;                        ;
146    
147  create_instruction    :  AUDIO_OUTPUT_DEVICE SP string SP key_val_list { $$ = LSCPSERVER->CreateAudioOutputDevice($3,$5); }  create_instruction    :  AUDIO_OUTPUT_DEVICE SP string SP key_val_list { $$ = LSCPSERVER->CreateAudioOutputDevice($3,$5); }
148                          |  AUDIO_OUTPUT_DEVICE SP string                 { $$ = LSCPSERVER->CreateAudioOutputDevice($3); }
149                        ;                        ;
150    
151  destroy_instruction   :  AUDIO_OUTPUT_DEVICE SP NUMBER  { $$ = LSCPSERVER->DestroyAudioOutputDevice($3); }  destroy_instruction   :  AUDIO_OUTPUT_DEVICE SP NUMBER  { $$ = LSCPSERVER->DestroyAudioOutputDevice($3); }
# Line 175  list_instruction      :  AUDIO_OUTPUT_DE Line 175  list_instruction      :  AUDIO_OUTPUT_DE
175                        ;                        ;
176    
177  load_instr_args       :  filename SP instrument_index SP sampler_channel  { $$ = LSCPSERVER->LoadInstrument($1, $3, $5); }  load_instr_args       :  filename SP instrument_index SP sampler_channel  { $$ = LSCPSERVER->LoadInstrument($1, $3, $5); }
178                          |  NON_MODAL SP filename SP instrument_index SP sampler_channel  { $$ = LSCPSERVER->LoadInstrument($3, $5, $7, true); }
179                        ;                        ;
180    
181  load_engine_args      :  engine_name SP sampler_channel  { $$ = LSCPSERVER->LoadEngine($1, $3); }  load_engine_args      :  engine_name SP sampler_channel  { $$ = LSCPSERVER->LoadEngine($1, $3); }

Legend:
Removed from v.135  
changed lines
  Added in v.141

  ViewVC Help
Powered by ViewVC