Forgot to handle control and global opcodes in the synth
This commit is contained in:
parent
16bcd21493
commit
bdf3f64b28
3 changed files with 4 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ add_executable(sfizz_tests ${TEST_SOURCES} ${COMMON_SOURCES})
|
|||
if(UNIX)
|
||||
target_link_libraries(sfizz_tests stdc++fs)
|
||||
endif(UNIX)
|
||||
target_link_libraries(sfizz_tests Catch2::Catch2 absl::strings absl::flat_hash_map sndfile readerwriterqueue cnpy-static absl::span absl::algorithm)
|
||||
target_link_libraries(sfizz_tests Catch2::Catch2 absl::strings absl::str_format absl::flat_hash_map sndfile readerwriterqueue cnpy-static absl::span absl::algorithm)
|
||||
target_include_directories(sfizz_tests SYSTEM PRIVATE sources)
|
||||
file(COPY "tests" DESTINATION ${CMAKE_BINARY_DIR})
|
||||
|
||||
|
|
|
|||
1
external/spdlog
vendored
Submodule
1
external/spdlog
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 139c0d135f303946bd542a9bc2d6b18d6a7415bb
|
||||
|
|
@ -17,12 +17,14 @@ void sfz::Synth::callback(std::string_view header, const std::vector<Opcode>& me
|
|||
// We shouldn't have multiple global headers in file
|
||||
ASSERT(!hasGlobal);
|
||||
globalOpcodes = members;
|
||||
handleGlobalOpcodes(members);
|
||||
hasGlobal = true;
|
||||
break;
|
||||
case hash("control"):
|
||||
// We shouldn't have multiple control headers in file
|
||||
ASSERT(!hasControl)
|
||||
hasControl = true;
|
||||
handleControlOpcodes(members);
|
||||
break;
|
||||
case hash("master"):
|
||||
masterOpcodes = members;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue