# HG changeset patch # User chainsaw # Date 1136070976 28800 # Node ID e296500f595a1125f4b472b6bff968801c1fc0d0 # Parent 11d9ea46c9c7c31609cf4ae58c0b7487dfe8486b [svn] Stop GYM playback at the right time, if the length is known. diff -r 11d9ea46c9c7 -r e296500f595a Plugins/Input/console/Audacious_Driver.cpp --- a/Plugins/Input/console/Audacious_Driver.cpp Sat Dec 31 15:15:42 2005 -0800 +++ b/Plugins/Input/console/Audacious_Driver.cpp Sat Dec 31 15:16:16 2005 -0800 @@ -602,6 +602,9 @@ my_gym->play(1024, buf); if ((console_ip.output->output_time() / 1000) > + gym->track_length() && gym->track_length() != 0) + break; + if ((console_ip.output->output_time() / 1000) > audcfg.loop_length && audcfg.loop_length != 0) break; produce_audio(console_ip.output->written_time(),