int sound_define_from_str(const char *str) { if (BLI_strcaseeq(str, "NULL")) return AUD_NULL_DEVICE; if (BLI_strcaseeq(str, "SDL")) return AUD_SDL_DEVICE; if (BLI_strcaseeq(str, "OPENAL")) return AUD_OPENAL_DEVICE; if (BLI_strcaseeq(str, "JACK")) return AUD_JACK_DEVICE; return -1; }
bool ExtraHandler::parseElement ( const char* profileName, const unsigned long& elementHash, const COLLADAFW::UniqueId& uniqueId ) { if(BLI_strcaseeq(profileName, "blender")) { //printf("In parseElement for supported profile %s for id %s\n", profileName, uniqueId.toAscii().c_str()); currentUid = uniqueId; ExtraTags *et = dimp->getExtraTags(uniqueId); if(!et) { et = new ExtraTags(std::string(profileName)); dimp->addExtraTags(uniqueId, et); } currentExtraTags = et; return true; } //printf("In parseElement for unsupported profile %s for id %s\n", profileName, uniqueId.toAscii().c_str()); return false; }