1059 |
|
|
1060 |
void File::parseFile(std::string file, SampleManager* pSampleManager){ |
void File::parseFile(std::string file, SampleManager* pSampleManager){ |
1061 |
enum token_type_t { HEADER, OPCODE }; |
enum token_type_t { HEADER, OPCODE }; |
1062 |
token_type_t token_type; |
token_type_t token_type = (token_type_t) -1; |
1063 |
std::string token_string; |
std::string token_string; |
1064 |
|
|
1065 |
std::ifstream fs(file.c_str()); |
std::ifstream fs(file.c_str()); |
1430 |
{ |
{ |
1431 |
case CONTROL: |
case CONTROL: |
1432 |
default_path = value; |
default_path = value; |
1433 |
|
break; |
1434 |
|
default: |
1435 |
|
; // noop |
1436 |
} |
} |
1437 |
return; |
return; |
1438 |
} |
} |
1442 |
{ |
{ |
1443 |
case CONTROL: |
case CONTROL: |
1444 |
octave_offset = ToInt(value); |
octave_offset = ToInt(value); |
1445 |
|
break; |
1446 |
|
default: |
1447 |
|
; // noop |
1448 |
} |
} |
1449 |
return; |
return; |
1450 |
} |
} |
1454 |
{ |
{ |
1455 |
case CONTROL: |
case CONTROL: |
1456 |
note_offset = ToInt(value); |
note_offset = ToInt(value); |
1457 |
|
break; |
1458 |
|
default: |
1459 |
|
; // noop |
1460 |
} |
} |
1461 |
return; |
return; |
1462 |
} |
} |