2 |
* * |
* * |
3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* * |
* * |
7 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
8 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
52 |
%token <Char> CHAR |
%token <Char> CHAR |
53 |
%token <Dotnum> DOTNUM |
%token <Dotnum> DOTNUM |
54 |
%token <Number> NUMBER |
%token <Number> NUMBER |
55 |
%token SP LF CR |
%token SP LF CR HASH |
56 |
%token ADD GET LOAD REMOVE SET SUBSCRIBE UNSUBSCRIBE RESET QUIT |
%token ADD GET LOAD REMOVE SET SUBSCRIBE UNSUBSCRIBE RESET QUIT |
57 |
%token CHANNEL NOTIFICATION |
%token CHANNEL NOTIFICATION |
58 |
%token AVAILABLE_ENGINES CHANNELS INFO BUFFER_FILL STREAM_COUNT VOICE_COUNT |
%token AVAILABLE_ENGINES CHANNELS INFO BUFFER_FILL STREAM_COUNT VOICE_COUNT |
80 |
; |
; |
81 |
|
|
82 |
line : /* epsilon (empty line ignored) */ |
line : /* epsilon (empty line ignored) */ |
83 |
|
| comment |
84 |
| command { LSCPSERVER->AnswerClient($1); } |
| command { LSCPSERVER->AnswerClient($1); } |
85 |
| error { LSCPSERVER->AnswerClient("Err:0:Unknown command.\r\n"); RESTART; return LSCP_SYNTAX_ERROR; } |
| error { LSCPSERVER->AnswerClient("Err:0:Unknown command.\r\n"); RESTART; return LSCP_SYNTAX_ERROR; } |
86 |
; |
; |
87 |
|
|
88 |
|
comment : HASH |
89 |
|
| comment HASH |
90 |
|
| comment SP |
91 |
|
| comment NUMBER |
92 |
|
| comment string |
93 |
|
; |
94 |
|
|
95 |
command : ADD SP CHANNEL { $$ = LSCPSERVER->AddChannel(); } |
command : ADD SP CHANNEL { $$ = LSCPSERVER->AddChannel(); } |
96 |
| GET SP get_instruction { $$ = $3; } |
| GET SP get_instruction { $$ = $3; } |
97 |
| LOAD SP load_instruction { $$ = $3; } |
| LOAD SP load_instruction { $$ = $3; } |
134 |
load_engine_args : engine_name SP sampler_channel { $$ = LSCPSERVER->LoadEngine($1, $3); } |
load_engine_args : engine_name SP sampler_channel { $$ = LSCPSERVER->LoadEngine($1, $3); } |
135 |
; |
; |
136 |
|
|
137 |
audio_output_type : ALSA { $$ = audio_output_type_alsa; } |
audio_output_type : ALSA { $$ = AudioOutputDevice::type_alsa; } |
138 |
| JACK { $$ = audio_output_type_jack; } |
| JACK { $$ = AudioOutputDevice::type_jack; } |
139 |
; |
; |
140 |
|
|
141 |
midi_input_type : ALSA { $$ = midi_input_type_alsa; } |
midi_input_type : ALSA { $$ = MidiInputDevice::type_alsa; } |
142 |
; |
; |
143 |
|
|
144 |
volume : DOTNUM |
volume : DOTNUM |