Mercurial > audlegacy
comparison Plugins/Input/console/Audacious_Driver.cpp @ 1405:cb985fe460cd trunk
[svn] - libconsole: added an option to ignore length information from spc tags
author | giacomo |
---|---|
date | Fri, 14 Jul 2006 14:07:10 -0700 |
parents | 7ca5335c205c |
children | eff9a84c54bf |
comparison
equal
deleted
inserted
replaced
1404:383c2527a84b | 1405:cb985fe460cd |
---|---|
37 #include "blargg_endian.h" | 37 #include "blargg_endian.h" |
38 | 38 |
39 //typedef Vfs_File_Reader Audacious_Reader; // will use VFS once it handles gzip transparently | 39 //typedef Vfs_File_Reader Audacious_Reader; // will use VFS once it handles gzip transparently |
40 typedef Gzip_File_Reader Audacious_Reader; | 40 typedef Gzip_File_Reader Audacious_Reader; |
41 | 41 |
42 AudaciousConsoleConfig audcfg = { 180, FALSE, 32000, TRUE, 0, 0 }; | 42 AudaciousConsoleConfig audcfg = { 180, FALSE, 32000, TRUE, 0, 0, FALSE }; |
43 static GThread* decode_thread; | 43 static GThread* decode_thread; |
44 static GStaticMutex playback_mutex = G_STATIC_MUTEX_INIT; | 44 static GStaticMutex playback_mutex = G_STATIC_MUTEX_INIT; |
45 static int console_ip_is_going; | 45 static int console_ip_is_going; |
46 static volatile long pending_seek; | 46 static volatile long pending_seek; |
47 extern InputPlugin console_ip; | 47 extern InputPlugin console_ip; |
669 return; | 669 return; |
670 | 670 |
671 // set info | 671 // set info |
672 int length = -1; | 672 int length = -1; |
673 bool has_length = false; | 673 bool has_length = false; |
674 | |
675 if (( type == type_spc ) && ( audcfg.ignore_spc_length == TRUE )) | |
676 info.length = -1; | |
677 | |
674 char* title = end_get_info( info, &length, &has_length ); | 678 char* title = end_get_info( info, &length, &has_length ); |
675 if ( title ) | 679 if ( title ) |
676 { | 680 { |
677 console_ip.set_info( title, length, emu->voice_count() * 1000, sample_rate, 2 ); | 681 console_ip.set_info( title, length, emu->voice_count() * 1000, sample_rate, 2 ); |
678 g_free( title ); | 682 g_free( title ); |