[Openal] Help with testprog
prakash at punnoor.de
Mon Jan 16 03:30:09 PST 2006
Am Montag Januar 16 2006 10:25 schrieb Sven Panne:
> Ooops, sorry for the breakage and thanks for the detailed analysis.
> Right now I don't have access to the code, but I'll fix this very soon.
> Could you check your test program into CVS, please? Even if we
> currently don't build the tests automatically, it would be good to keep
> tests like this for regression tests.
It is not actually needed, as there are other test which do something similar
and break. The problem with most of the tests is: You don't know what is
expected, so unless knowledged you won't notice the problem - or did I miss
some Documentation? I think because of that the tests are kinda useless,
unless you know the code. (OK, you can still figure out, what should happen
if you go to the code, nevetheless this is tedious.)
Perhaps it would be best if each test would output:
You should hear: ...bla....
My test is only quite "natural". Nevertheless, it is redundant.
BTW, I found some more oddities: The vorbis extension is broken. The test
won't show it. Set looping to false and then you'll see the source won't be
played fully. (mp3 extension works as expected though.) I tried to figure out
what goes wrong, but so far I didn't succeed. Well I don't know much about
OpenAL Buffering nor vorbisfile's callback interface.... Either samples don't
get flushed out. (OpenAL sees input is done and stops playing, but vorbisfile
has still samples to output, but that isn't flushed - my suspicion.) Or some
other setting is wrong. (I don't know whether this is a regression. It would
be strange if this was broken from day 1 though...)
Furthermore the testmultinothread sounds very strange. Is that expected?
What is furthmore bad: A lot of tesst use sample.wav which is adpcm and alut
doesn't support it...
I changed most of the tests to the new alut interface, except the multichannel
test, as it want to check # of channels. Is there a way to find this out when
loading the sample in alut?
BTW; I think we should move this thread into devel. ;-)
//\ Prakash Punnoor /\\
More information about the Openal