CORRADE_WARN("Apple's OpenAL implementation returns bogus values. Sometimes. With a random value every call. Skipping the context properties comparison.");
/* Verify the queries make sense. All of these are just hints so the
/* Verify the queries make sense. All of these are just hints so the
actualvalueusedcouldbehigher.*/
actualvalueusedcouldbehigher.*/
CORRADE_COMPARE_AS(context.frequency(),22050,
#ifdef CORRADE_TARGET_APPLE
TestSuite::Compare::GreaterOrEqual);
if(context.vendorString()=="Apple Computer Inc.")
CORRADE_COMPARE_AS(context.monoSourceCount(),5,
CORRADE_WARN("Apple's OpenAL implementation returns bogus values. Sometimes. With a random value every call. Skipping the context properties comparison.");
TestSuite::Compare::GreaterOrEqual);
else
CORRADE_COMPARE(context.stereoSourceCount(),4);
#endif
CORRADE_COMPARE_AS(context.refreshRate(),25,
{
TestSuite::Compare::GreaterOrEqual);
CORRADE_COMPARE_AS(context.frequency(),22050,
TestSuite::Compare::GreaterOrEqual);
CORRADE_COMPARE_AS(context.monoSourceCount(),5,
TestSuite::Compare::GreaterOrEqual);
CORRADE_COMPARE(context.stereoSourceCount(),4);
CORRADE_COMPARE_AS(context.refreshRate(),25,
TestSuite::Compare::GreaterOrEqual);
}
/* HRTF gets enabled only if the extension is supported */
/* HRTF gets enabled only if the extension is supported */
CORRADE_WARN("Apple's OpenAL implementation returns bogus values. Sometimes. With a random value every call. Skipping the context properties comparison.");