# HG changeset patch # User chainsaw # Date 1136059493 28800 # Node ID 2101285b753aa497ec71c96d6fefbff78adb540f # Parent db298f2d3dd9e2df92757b8d5f647ae64f8ae27d [svn] Length detection for GYM. diff -r db298f2d3dd9 -r 2101285b753a Plugins/Input/console/Audacious_Driver.cpp --- 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