@@ -153,7 +153,7 @@ ControlProtocol::set_route_table (uint32_t table_index, uint32_t remote_control_
153
153
void
154
154
ControlProtocol::route_set_rec_enable (uint32_t table_index, bool yn)
155
155
{
156
- if (table_index > route_table.size ()) {
156
+ if (table_index >= route_table.size ()) {
157
157
return ;
158
158
}
159
159
@@ -169,7 +169,7 @@ ControlProtocol::route_set_rec_enable (uint32_t table_index, bool yn)
169
169
bool
170
170
ControlProtocol::route_get_rec_enable (uint32_t table_index)
171
171
{
172
- if (table_index > route_table.size ()) {
172
+ if (table_index >= route_table.size ()) {
173
173
return false ;
174
174
}
175
175
@@ -188,7 +188,7 @@ ControlProtocol::route_get_rec_enable (uint32_t table_index)
188
188
float
189
189
ControlProtocol::route_get_gain (uint32_t table_index)
190
190
{
191
- if (table_index > route_table.size ()) {
191
+ if (table_index >= route_table.size ()) {
192
192
return 0 .0f ;
193
193
}
194
194
@@ -204,7 +204,7 @@ ControlProtocol::route_get_gain (uint32_t table_index)
204
204
void
205
205
ControlProtocol::route_set_gain (uint32_t table_index, float gain)
206
206
{
207
- if (table_index > route_table.size ()) {
207
+ if (table_index >= route_table.size ()) {
208
208
return ;
209
209
}
210
210
@@ -218,7 +218,7 @@ ControlProtocol::route_set_gain (uint32_t table_index, float gain)
218
218
float
219
219
ControlProtocol::route_get_effective_gain (uint32_t table_index)
220
220
{
221
- if (table_index > route_table.size ()) {
221
+ if (table_index >= route_table.size ()) {
222
222
return 0 .0f ;
223
223
}
224
224
@@ -235,7 +235,7 @@ ControlProtocol::route_get_effective_gain (uint32_t table_index)
235
235
float
236
236
ControlProtocol::route_get_peak_input_power (uint32_t table_index, uint32_t which_input)
237
237
{
238
- if (table_index > route_table.size ()) {
238
+ if (table_index >= route_table.size ()) {
239
239
return 0 .0f ;
240
240
}
241
241
@@ -251,7 +251,7 @@ ControlProtocol::route_get_peak_input_power (uint32_t table_index, uint32_t whic
251
251
bool
252
252
ControlProtocol::route_get_muted (uint32_t table_index)
253
253
{
254
- if (table_index > route_table.size ()) {
254
+ if (table_index >= route_table.size ()) {
255
255
return false ;
256
256
}
257
257
@@ -267,7 +267,7 @@ ControlProtocol::route_get_muted (uint32_t table_index)
267
267
void
268
268
ControlProtocol::route_set_muted (uint32_t table_index, bool yn)
269
269
{
270
- if (table_index > route_table.size ()) {
270
+ if (table_index >= route_table.size ()) {
271
271
return ;
272
272
}
273
273
@@ -282,7 +282,7 @@ ControlProtocol::route_set_muted (uint32_t table_index, bool yn)
282
282
bool
283
283
ControlProtocol::route_get_soloed (uint32_t table_index)
284
284
{
285
- if (table_index > route_table.size ()) {
285
+ if (table_index >= route_table.size ()) {
286
286
return false ;
287
287
}
288
288
@@ -298,7 +298,7 @@ ControlProtocol::route_get_soloed (uint32_t table_index)
298
298
void
299
299
ControlProtocol::route_set_soloed (uint32_t table_index, bool yn)
300
300
{
301
- if (table_index > route_table.size ()) {
301
+ if (table_index >= route_table.size ()) {
302
302
return ;
303
303
}
304
304
@@ -312,7 +312,7 @@ ControlProtocol::route_set_soloed (uint32_t table_index, bool yn)
312
312
string
313
313
ControlProtocol:: route_get_name (uint32_t table_index)
314
314
{
315
- if (table_index > route_table.size ()) {
315
+ if (table_index >= route_table.size ()) {
316
316
return " " ;
317
317
}
318
318
0 commit comments