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:
@@ -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());
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user