a slightly more readable version of the test
This commit is contained in:
@@ -156,10 +156,12 @@ void SGSoundMgr::init() {
|
|||||||
else break;
|
else break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *vendor = (char *)alGetString(AL_VENDOR);
|
string vendor = alGetString(AL_VENDOR);
|
||||||
const char *renderer = (char *)alGetString(AL_RENDERER);
|
string renderer = alGetString(AL_RENDERER);
|
||||||
if ( strcmp(vendor, "OpenAL Community") || strcmp(renderer, "Software")
|
if ( vendor != "OpenAL Community" ||
|
||||||
|| strcmp(renderer, "OpenAL Sample Implementation") ) {
|
(renderer != "Software" && renderer != "OpenAL Sample Implementation")
|
||||||
|
)
|
||||||
|
{
|
||||||
_bad_doppler = true;
|
_bad_doppler = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user