Fixed LDS playback

CQTexperiment
Chris Moeller 2014-03-14 17:57:48 -07:00
parent 27fc345488
commit 053bda3d92
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
midi_container midi_file;
if ( !midi_processor::process_file( data, [[[url absoluteString] pathExtension] UTF8String], midi_file) )
if ( !midi_processor::process_file( data, [[url pathExtension] UTF8String], midi_file) )
return 0;
long track_count = midi_file.get_subsong_count();

View File

@ -45,7 +45,7 @@
file_data.resize( size );
[s read:&file_data[0] amount:size];
if ( !midi_processor::process_file(file_data, [[[[s url] absoluteString] lastPathComponent] UTF8String], midi_file) )
if ( !midi_processor::process_file(file_data, [[[s url] pathExtension] UTF8String], midi_file) )
return NO;
int track_num = [[[s url] fragment] intValue]; //What if theres no fragment? Assuming we get 0.