changeset 362:2101285b753a trunk

[svn] Length detection for GYM.
author chainsaw
date Sat, 31 Dec 2005 12:04:53 -0800
parents db298f2d3dd9
children eaaee9e0519c
files Plugins/Input/console/Audacious_Driver.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp	Fri Dec 30 17:56:32 2005 -0800
+++ b/Plugins/Input/console/Audacious_Driver.cpp	Sat Dec 31 12:04:53 2005 -0800
@@ -306,7 +306,10 @@
 
 	name = get_title(filename);
 
-	if (audcfg.loop_length)
+	if (gym->track_length() > 0)
+		console_ip.set_info(name, gym->track_length() * 1000, 
+			gym->voice_count() * 1000, samplerate, 2);
+	else if (audcfg.loop_length)
 		console_ip.set_info(name, audcfg.loop_length * 1000, 
 			gym->voice_count() * 1000, samplerate, 2);
 	else