Skip to content

Commit

Permalink
Added debug messages for hidden soundfont setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
alinebee committed Nov 30, 2014
1 parent 48c13ac commit c743130
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Boxer/BXSession+BXAudioControls.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,17 @@ - (void) emulatorDidDisplayMT32Message: (NSNotification *)notification
NSString *soundfontPath = [[NSUserDefaults standardUserDefaults] objectForKey: @"MIDISoundFontPath"];
if (soundfontPath)
{
[fallbackSynth loadSoundFontWithContentsOfURL: [NSURL fileURLWithPath: soundfontPath]
error: NULL];
NSError *loadError = nil;
BOOL loaded = [fallbackSynth loadSoundFontWithContentsOfURL: [NSURL fileURLWithPath: soundfontPath] error: &loadError];

if (loaded)
{
NSLog(@"Successfully loaded soundfont: %@", soundfontPath);
}
else
{
NSLog(@"Error when loading soundfont: %@", loadError);
}
}

return fallbackSynth;
Expand Down

0 comments on commit c743130

Please sign in to comment.