205 |
EngineChannel* engine_channel = channel->GetEngineChannel(); |
EngineChannel* engine_channel = channel->GetEngineChannel(); |
206 |
engine_channel->Volume(volume); |
engine_channel->Volume(volume); |
207 |
if (!filename.empty() && index != -1) { |
if (!filename.empty() && index != -1) { |
208 |
engine_channel->PrepareLoadInstrument(filename.c_str(), index); |
InstrumentManager::instrument_id_t id; |
209 |
engine_channel->LoadInstrument(); |
id.FileName = filename; |
210 |
|
id.Index = index; |
211 |
|
InstrumentManager::LoadInstrumentInBackground(id, engine_channel); |
212 |
} |
} |
213 |
if (solo) engine_channel->SetSolo(solo); |
if (solo) engine_channel->SetSolo(solo); |
214 |
if (mute) engine_channel->SetMute(1); |
if (mute) engine_channel->SetMute(1); |