changeset 371:e296500f595a trunk

[svn] Stop GYM playback at the right time, if the length is known.
author chainsaw
date Sat, 31 Dec 2005 15:16:16 -0800
parents 11d9ea46c9c7
children 8faef4a1461f
files Plugins/Input/console/Audacious_Driver.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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(),