made midi server beos compatible

fix binary compatibility for several classes (I missed this before)
the soft synth loads by default /boot/beos/etc/synth/big_synth.sy (which I locally linked to a General Midi sf2 bank
tested with MidiSynth 1.6 on Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17864 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2006-06-17 14:04:46 +00:00
parent 3e9e6a58c8
commit bafde775b9
13 changed files with 58 additions and 47 deletions
+8 -4
View File
@@ -24,7 +24,8 @@
#include <string.h>
#include "debug.h"
#include "Synth.h"
#include <Path.h>
#include <Synth.h>
#include "SoftSynth.h"
BSynth* be_synth = NULL;
@@ -58,12 +59,15 @@ BSynth::~BSynth()
status_t BSynth::LoadSynthData(entry_ref* instrumentsFile)
{
if (instrumentsFile == NULL)
{
if (instrumentsFile == NULL) {
return B_BAD_VALUE;
}
return synth->SetInstrumentsFile(instrumentsFile->name);
BPath path(instrumentsFile);
status_t err = path.InitCheck();
if (err != B_OK)
return err;
return synth->SetInstrumentsFile(path.Path());
}
//------------------------------------------------------------------------------