Skip to content

Commit

Permalink
Add DLS support
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Jul 8, 2018
1 parent 600da3e commit d291e9c
Show file tree
Hide file tree
Showing 13 changed files with 1,725 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ add_definitions(
-DUSE_TWSYN_BRIDGE
-DENABLE_SFZ
-DTIMW32G_USE_NEW_CONSOLE
-DENABLE_DLS

# TiMidity++ audio
-DAU_W32
Expand Down
2 changes: 2 additions & 0 deletions cfgforsf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ add_executable(
../timidity/common.c
../timidity/controls.c
../timidity/decode.c
../timidity/dls.cpp
../timidity/envelope.c
../timidity/filter.c
../timidity/freq.c
Expand All @@ -31,6 +32,7 @@ add_executable(
../timidity/common.h
../timidity/controls.h
../timidity/decode.h
../timidity/dls.h
../timidity/envelope.h
../timidity/filter.h
../timidity/freq.h
Expand Down
14 changes: 13 additions & 1 deletion interface/ncurs_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,19 @@ static void init_trace_window_chan(int ch)
wprintw(dftwin, "(%s)", prog->comment);
}
#endif
}
#ifdef ENABLE_DLS
else if (type == INST_DLS)
{
if (prog->name)
{
waddch(dftwin, ' ');
waddstr(dftwin, prog->name);
}
if (prog->comment != NULL)
wprintw(dftwin, "(%s)", prog->comment);
}
#endif
}
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions interface/w32g_pref.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
#include "resample.h"
#include "mix.h"
#include "thread.h"
#include "dls.h"
#include "sfz.h"

#include <tchar.h>
Expand Down Expand Up @@ -712,6 +713,9 @@ void PrefSettingApplyReally(void)
#ifdef INT_SYNTH
init_int_synth();
#endif // INT_SYNTH
#ifdef ENABLE_DLS
init_dls();
#endif
#ifdef ENABLE_SFZ
init_sfz();
#endif
Expand Down Expand Up @@ -794,6 +798,9 @@ static void PrefSettingApply(void)
#ifdef INT_SYNTH
init_int_synth();
#endif // INT_SYNTH
#ifdef ENABLE_DLS
init_dls();
#endif
#ifdef ENABLE_SFZ
init_sfz();
#endif
Expand Down Expand Up @@ -843,6 +850,9 @@ void reload_cfg(void)
#ifdef ENABLE_SFZ
free_sfz();
#endif
#ifdef ENABLE_DLS
free_dls();
#endif
#ifdef INT_SYNTH
free_int_synth();
#endif // INT_SYNTH
Expand Down
2 changes: 2 additions & 0 deletions sf_view_gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ add_executable(
../timidity/common.c
../timidity/controls.c
../timidity/decode.c
../timidity/dls.cpp
../timidity/envelope.c
../timidity/filter.c
../timidity/freq.c
Expand All @@ -40,6 +41,7 @@ add_executable(
../timidity/common.h
../timidity/controls.h
../timidity/decode.h
../timidity/dls.h
../timidity/envelope.h
../timidity/filter.h
../timidity/instrum.h
Expand Down
2 changes: 2 additions & 0 deletions timidity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ add_library(
audio_cnv.c
common.c
decode.c
dls.cpp
effect.c
envelope.c
filter.c
Expand Down Expand Up @@ -126,6 +127,7 @@ add_library(
audriv.h
common.h
decode.h
dls.h
dlutils.h
filter.h
freq.h
Expand Down
Loading

0 comments on commit d291e9c

Please sign in to comment.