2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
20 |
|
|
21 |
*****************************************************************************/ |
*****************************************************************************/ |
22 |
|
|
|
#include "qsamplerUtilities.h" |
|
23 |
#include "qsamplerAbout.h" |
#include "qsamplerAbout.h" |
24 |
#include "qsamplerInstrument.h" |
#include "qsamplerInstrument.h" |
25 |
|
#include "qsamplerUtilities.h" |
26 |
|
|
27 |
#include "qsamplerMainForm.h" |
#include "qsamplerMainForm.h" |
28 |
|
|
29 |
|
|
30 |
using namespace QSampler; |
using namespace QSampler; |
31 |
|
|
32 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
194 |
} |
} |
195 |
|
|
196 |
if (::lscp_map_midi_instrument(pMainForm->client(), &instr, |
if (::lscp_map_midi_instrument(pMainForm->client(), &instr, |
197 |
m_sEngineName.latin1(), |
m_sEngineName.toUtf8().constData(), |
198 |
qsamplerUtilities::lscpEscapePath(m_sInstrumentFile).latin1(), |
qsamplerUtilities::lscpEscapePath( |
199 |
m_iInstrumentNr, |
m_sInstrumentFile).toUtf8().constData(), |
200 |
m_fVolume, |
m_iInstrumentNr, m_fVolume, load_mode, |
201 |
load_mode, |
m_sName.toUtf8().constData()) != LSCP_OK) { |
|
m_sName.latin1()) != LSCP_OK) { |
|
202 |
pMainForm->appendMessagesClient("lscp_map_midi_instrument"); |
pMainForm->appendMessagesClient("lscp_map_midi_instrument"); |
203 |
return false; |
return false; |
204 |
} |
} |