else break;
}
- const char *vendor = (char *)alGetString(AL_VENDOR);
- const char *renderer = (char *)alGetString(AL_RENDERER);
- if ( strcmp(vendor, "OpenAL Community") || strcmp(renderer, "Software")
- || strcmp(renderer, "OpenAL Sample Implementation") ) {
+ string vendor = alGetString(AL_VENDOR);
+ string renderer = alGetString(AL_RENDERER);
+ if ( vendor != "OpenAL Community" ||
+ (renderer != "Software" && renderer != "OpenAL Sample Implementation")
+ )
+ {
_bad_doppler = true;
}