From f49fed5e8356e739200155633649b3e227eb3ada Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Thu, 8 Oct 2009 19:56:03 +0000 Subject: [PATCH] Do not call fluid_player_join if the player does not advance --- fluidsynth/src/fluidsynth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fluidsynth/src/fluidsynth.c b/fluidsynth/src/fluidsynth.c index 72f87be7..6ec8483f 100644 --- a/fluidsynth/src/fluidsynth.c +++ b/fluidsynth/src/fluidsynth.c @@ -712,7 +712,10 @@ int main(int argc, char** argv) if (interactive) { fluid_player_stop(player); } - fluid_player_join(player); + if (adriver != NULL || !fluid_settings_str_equal(settings, "player.timing-source", "sample")) { + /* if no audio driver and sample timers are used, nothing makes the player advance */ + fluid_player_join(player); + } delete_fluid_player(player); }