[Openal] Is it possible? Load a WAV file without a sound card
Jason Daly
jdaly at ist.ucf.edu
Wed Aug 27 07:49:06 PDT 2008
Stefanos A. wrote:
> 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.
>
I don't think uou don't need to use the deprecated functions, either.
Have a look at alutLoadMemoryFromFile().
--"J"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20080827/9b5ed5fd/attachment.html
More information about the Openal
mailing list