61 |
pSynthesisParameters[0] = NULL; // we allocate when an audio device is connected |
pSynthesisParameters[0] = NULL; // we allocate when an audio device is connected |
62 |
pBasicFilterParameters = NULL; |
pBasicFilterParameters = NULL; |
63 |
pMainFilterParameters = NULL; |
pMainFilterParameters = NULL; |
64 |
|
|
65 |
|
InstrumentIdx = -1; |
66 |
|
|
67 |
ResetInternal(); |
ResetInternal(); |
68 |
} |
} |
197 |
Instruments.HandBack(pInstrument, this); |
Instruments.HandBack(pInstrument, this); |
198 |
} |
} |
199 |
|
|
200 |
|
InstrumentIdx = -1; |
201 |
|
|
202 |
// request gig instrument from instrument manager |
// request gig instrument from instrument manager |
203 |
try { |
try { |
204 |
instrument_id_t instrid; |
instrument_id_t instrid; |
222 |
throw LinuxSamplerException("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file."); |
throw LinuxSamplerException("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file."); |
223 |
} |
} |
224 |
|
|
225 |
|
InstrumentFile = FileName; |
226 |
|
InstrumentIdx = Instrument; |
227 |
|
|
228 |
// inform audio driver for the need of two channels |
// inform audio driver for the need of two channels |
229 |
try { |
try { |
230 |
if (pAudioOutputDevice) pAudioOutputDevice->AcquireChannels(2); // gig Engine only stereo |
if (pAudioOutputDevice) pAudioOutputDevice->AcquireChannels(2); // gig Engine only stereo |
697 |
return pDiskThread->GetBufferFillPercentage(); |
return pDiskThread->GetBufferFillPercentage(); |
698 |
} |
} |
699 |
|
|
700 |
|
String Engine::EngineName() { |
701 |
|
return "GigEngine"; |
702 |
|
} |
703 |
|
|
704 |
|
String Engine::InstrumentFileName() { |
705 |
|
return InstrumentFile; |
706 |
|
} |
707 |
|
|
708 |
|
int Engine::InstrumentIndex() { |
709 |
|
return InstrumentIdx; |
710 |
|
} |
711 |
|
|
712 |
String Engine::Description() { |
String Engine::Description() { |
713 |
return "Gigasampler Engine"; |
return "Gigasampler Engine"; |
714 |
} |
} |