|
|
|
|
@ -46,6 +46,7 @@ struct SourceALTest: TestSuite::Tester {
|
|
|
|
|
void minGain(); |
|
|
|
|
void coneAnglesAndGain(); |
|
|
|
|
void rolloffFactor(); |
|
|
|
|
void type(); |
|
|
|
|
|
|
|
|
|
Context _context; |
|
|
|
|
}; |
|
|
|
|
@ -63,7 +64,8 @@ SourceALTest::SourceALTest() {
|
|
|
|
|
&SourceALTest::maxGain, |
|
|
|
|
&SourceALTest::minGain, |
|
|
|
|
&SourceALTest::coneAnglesAndGain, |
|
|
|
|
&SourceALTest::rolloffFactor}); |
|
|
|
|
&SourceALTest::rolloffFactor, |
|
|
|
|
&SourceALTest::type}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SourceALTest::construct() { |
|
|
|
|
@ -168,6 +170,12 @@ void SourceALTest::rolloffFactor() {
|
|
|
|
|
CORRADE_COMPARE(source.rolloffFactor(), fact); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void SourceALTest::type() { |
|
|
|
|
Source source; |
|
|
|
|
|
|
|
|
|
CORRADE_VERIFY(source.type() == Source::Type::Undetermined); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}}}} |
|
|
|
|
|
|
|
|
|
CORRADE_TEST_MAIN(Magnum::Audio::Test::SourceALTest) |
|
|
|
|
|