Do not call fluid_player_join if the player does not advance

This commit is contained in:
David Henningsson 2009-10-08 19:56:03 +00:00
parent 2579d853fb
commit f49fed5e83

View file

@ -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);
}