comparison Plugins/Input/console/Audacious_Driver.cpp @ 362:2101285b753a trunk

[svn] Length detection for GYM.
author chainsaw
date Sat, 31 Dec 2005 12:04:53 -0800
parents f13ab2d8e9cf
children eaaee9e0519c
comparison
equal deleted inserted replaced
361:db298f2d3dd9 362:2101285b753a
304 304
305 console_ip_is_going = TRUE; 305 console_ip_is_going = TRUE;
306 306
307 name = get_title(filename); 307 name = get_title(filename);
308 308
309 if (audcfg.loop_length) 309 if (gym->track_length() > 0)
310 console_ip.set_info(name, gym->track_length() * 1000,
311 gym->voice_count() * 1000, samplerate, 2);
312 else if (audcfg.loop_length)
310 console_ip.set_info(name, audcfg.loop_length * 1000, 313 console_ip.set_info(name, audcfg.loop_length * 1000,
311 gym->voice_count() * 1000, samplerate, 2); 314 gym->voice_count() * 1000, samplerate, 2);
312 else 315 else
313 console_ip.set_info(name, -1, gym->voice_count() * 1000, 316 console_ip.set_info(name, -1, gym->voice_count() * 1000,
314 samplerate, 2); 317 samplerate, 2);