Skip to content

Commit

Permalink
Add sf3 support to sfviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Apr 30, 2018
1 parent 00d0de8 commit aa0595c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions sf_view_gui/mysndfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ void CreateSoundFontTree(HWND hDlg, LPCSTR x_sf_filename_)

//TreeView_DeleteAllItems(hTree);

if (_stricmp(PathFindExtension(x_sf_filename_), ".sf2")) {
return;
}

for (x_bank = 0; x_bank <= 127; x_bank++) {
for (x_preset = 0; x_preset <= 127; x_preset++) {
x_cfg_info.m_str[x_bank][x_preset] = NULL;
Expand Down
2 changes: 1 addition & 1 deletion sf_view_gui/sfview_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ LRESULT DlgMainProc_COMMAND(HWND hDlg, WPARAM wParam, LPARAM lParam)
CMyFileDialog fd;
fd.setOpenDlgDefaultSetting();
fd.setTitle("open soundfont");
fd.setFilter("soundfont (*.sf2)\0*.sf2\0\0");
fd.setFilter("soundfont (*.sf2;*.sf3)\0*.sf2;*.sf3\0All files (*.*)\0*.*\0\0");
fd.setOwner(hDlg);
if (fd.Execute()) {
const int n = fd.getIndex();
Expand Down

0 comments on commit aa0595c

Please sign in to comment.