[Openal] Is it possible? Load a WAV file without a sound card

Stefanos A. stapostol at gmail.com
Wed Aug 27 04:54:13 PDT 2008


On Wed, 2008-08-27 at 16:43 +1000, Jevon Kendon wrote:

> 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?

Even if you don't create a context, you have to initialize alut. In
fact, there is a variant of alutInit that does exactly that.



More information about the Openal mailing list