78 |
} |
} |
79 |
|
|
80 |
String InstrumentResourceManager::GetInstrumentName(instrument_id_t ID) { |
String InstrumentResourceManager::GetInstrumentName(instrument_id_t ID) { |
81 |
::gig::Instrument* pInstrument = Resource(ID); |
Lock(); |
82 |
return (pInstrument) ? pInstrument->pInfo->Name : ""; |
::gig::Instrument* pInstrument = Resource(ID, false); |
83 |
|
String res = (pInstrument) ? pInstrument->pInfo->Name : ""; |
84 |
|
Unlock(); |
85 |
|
return res; |
86 |
} |
} |
87 |
|
|
88 |
::gig::Instrument* InstrumentResourceManager::Create(instrument_id_t Key, InstrumentConsumer* pConsumer, void*& pArg) { |
::gig::Instrument* InstrumentResourceManager::Create(instrument_id_t Key, InstrumentConsumer* pConsumer, void*& pArg) { |