comparison Plugins/Input/console/Audacious_Driver.cpp @ 1252:ece68ef26b94 trunk

[svn] - we don't really have to unwire track 0 this way, as 0 will be selected by default if no subsong URI is given
author nenolod
date Thu, 15 Jun 2006 05:17:49 -0700
parents 7c765d74d643
children 61d78065b630
comparison
equal deleted inserted replaced
1251:5f09d64c61e2 1252:ece68ef26b94
766 { 766 {
767 g_free(path2); 767 g_free(path2);
768 return ret; 768 return ret;
769 } 769 }
770 770
771 // do subsong stuff here
772 ret = FALSE; // dewire track 0 from this stuff
773
774 switch ( type ) 771 switch ( type )
775 { 772 {
776 case type_nsf: load_file( tag, in, 0, NULL, (Nsf_Emu*) 0 ); break; 773 case type_nsf: load_file( tag, in, 0, NULL, (Nsf_Emu*) 0 ); break;
777 case type_nsfe:load_file( tag, in, 0, NULL, (Nsfe_Emu*)0 ); break; 774 case type_nsfe:load_file( tag, in, 0, NULL, (Nsfe_Emu*)0 ); break;
778 case type_gbs: load_file( tag, in, 0, NULL, (Gbs_Emu*) 0 ); break; 775 case type_gbs: load_file( tag, in, 0, NULL, (Gbs_Emu*) 0 ); break;
783 } 780 }
784 781
785 if (emu == NULL) 782 if (emu == NULL)
786 return FALSE; 783 return FALSE;
787 784
788 for (int i = 0; i < emu->track_count(); i++) 785 for (int i = 1; i < emu->track_count(); i++)
789 { 786 {
790 gchar _buf[65535]; 787 gchar _buf[65535];
791 g_snprintf(_buf, 65535, "%s?%d", path2, i); 788 g_snprintf(_buf, 65535, "%s?%d", path2, i);
792 789
793 playlist_add_url(_buf); 790 playlist_add_url(_buf);