|
@@ -654,11 +654,12 @@ public: |
|
|
|
|
|
|
|
|
const char* getCustomURIDString(const LV2_URID urid) const noexcept |
|
|
const char* getCustomURIDString(const LV2_URID urid) const noexcept |
|
|
{ |
|
|
{ |
|
|
CARLA_SAFE_ASSERT_RETURN(urid != CARLA_URI_MAP_ID_NULL, nullptr); |
|
|
|
|
|
CARLA_SAFE_ASSERT_RETURN(urid < fCustomURIDs.count(), nullptr); |
|
|
|
|
|
|
|
|
static const char* const sFallback = "urn:null"; |
|
|
|
|
|
CARLA_SAFE_ASSERT_RETURN(urid != CARLA_URI_MAP_ID_NULL, sFallback); |
|
|
|
|
|
CARLA_SAFE_ASSERT_RETURN(urid < fCustomURIDs.count(), sFallback); |
|
|
carla_debug("CarlaLv2Client::getCustomURIDString(%i)", urid); |
|
|
carla_debug("CarlaLv2Client::getCustomURIDString(%i)", urid); |
|
|
|
|
|
|
|
|
return fCustomURIDs.getAt(urid, nullptr); |
|
|
|
|
|
|
|
|
return fCustomURIDs.getAt(urid, sFallback); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------- |
|
|
// --------------------------------------------------------------------- |
|
|