Skip to content

Commit

Permalink
Integration and sample links
Browse files Browse the repository at this point in the history
Integration improvement (fix musescore#11):
* preprocessor variable to loose the xml and libsnd dependencies
* namespace SfTools
* smallSf now a class variable
* C++11 not needed anymore (struct initialization)
* dynamic declaration of array now ok with visual C++ (fix musescore#10)
* warning and unused variables removed

Bug fix:
* sample links now kept in the soundfont (fix musescore#9)
  • Loading branch information
davy7125 committed Aug 30, 2020
1 parent 7c5918c commit 9ea109e
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 206 deletions.
6 changes: 4 additions & 2 deletions sfconvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <QtCore/QTime>
#include "sfont.h"

bool smallSf = false;

//---------------------------------------------------------
// usage
Expand Down Expand Up @@ -56,6 +55,7 @@ int main(int argc, char* argv[])
bool code = false;
bool dump = false;
bool compress = false;
bool smallSf = false;
double oggQuality = 0.3;
double oggAmp = -1.0;
qint64 oggSerial = std::numeric_limits<qint64>::max();
Expand Down Expand Up @@ -118,7 +118,9 @@ int main(int argc, char* argv[])
exit(4);
}

SoundFont sf(argv[0]);
SfTools::SoundFont sf(argv[0]);
if (smallSf)
sf.smallSf = true;

if (!sf.read()) {
fprintf(stderr, "sf read error\n");
Expand Down
Loading

0 comments on commit 9ea109e

Please sign in to comment.