File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,9 @@ class LiquidSFZLoader
35
35
{
36
36
if (want_sfz_ != have_sfz_)
37
37
{
38
- printf (" LiquidSFZ: loading %s..." , want_sfz_.c_str ());
39
- fflush (stdout);
38
+ printerr (" LiquidSFZ: loading %s..." , want_sfz_.c_str ());
40
39
bool result = synth_.load (want_sfz_);
41
- printf (" %s\n " , result ? " OK" : " FAIL" );
40
+ printerr (" %s\n " , result ? " OK" : " FAIL" );
42
41
// TODO: handle load error
43
42
44
43
have_sfz_ = want_sfz_;
@@ -51,22 +50,22 @@ class LiquidSFZLoader
51
50
state_.store (STATE_IDLE);
52
51
}
53
52
}
54
- printf (" run() done\n " );
53
+ printerr (" LiquidSFZ: run() done\n " );
55
54
}
56
55
public:
57
56
LiquidSFZLoader (Synth &synth) :
58
57
synth_ (synth)
59
58
{
60
59
thread_ = std::thread (&LiquidSFZLoader::run, this );
61
60
want_sfz_.reserve (4096 ); // avoid allocations in audio thread
62
- printf (" LiquidSFZLoader()\n " );
61
+ printerr (" LiquidSFZLoader()\n " );
63
62
}
64
63
~LiquidSFZLoader ()
65
64
{
66
65
quit_.store (1 );
67
66
sem_.post ();
68
67
thread_.join ();
69
- printf (" ~LiquidSFZLoader()\n " );
68
+ printerr (" ~LiquidSFZLoader()\n " );
70
69
}
71
70
// called from audio thread
72
71
bool
You can’t perform that action at this time.
0 commit comments