[Openal] Is it possible? Load a WAV file without a sound card
Jevon Kendon
jevon.kendon at thalesatm.com
Tue Aug 26 23:43:16 PDT 2008
Hi,
I would like to know if it's possible to load a WAV file on a machine
that does not have a sound card.
This seems silly, I know, but the reason is specific to the application
at my work place. This application requires that all offline data be
integrity checked before it's used online (real-time, mission critical
system). Someone thought that checking the characteristics of the WAV files
used would be a good idea. Anyway, this checking is done by a different
application.
My suggestion was to just load and unload the WAV file, using the same
OpenAL interface as used by the online application, and if that was
successful
the WAV file would be considered OK.
I'm trying the deprecated interface as what works online:
alutLoadWAVFile((ALbyte*)filename, &format, &data, &size, &freq, &loop);
if (alGetError() != AL_NO_ERROR)
{
there was a problem.
}
alutUnloadWAV(format, data, size, freq);
Question is: Will these calls work if I don't initialize the device or
the context? i.e. use a machine that doesn't have a sound card?
The call to alutLoadWAVFile fails. There is no error, but data is NULL.
Digging a bit deeper, the internal error is AL_ERROR_IO_ERROR, but errno
is 0. The only difference I can think of is that I have not initialized
the sound environment, but I can't do that as this checker application
runs on a machine without a sound card.
After that, my next idea is to use some other tool to satisfy that some
integrity checking has been done (even if it's ">file test.wav" on Linux)
Any ideas appreciated,
Thanks,
Jevon
--
J
DISCLAIMER: This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free.
More information about the Openal
mailing list