コード例 #1
0
ファイル: sound.c プロジェクト: Walid-Shouman/Blender
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;
}
コード例 #2
0
ファイル: ExtraHandler.cpp プロジェクト: OldBrunet/BGERTPS
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;
}