[Openal] ALUT import for different wav formats
developer at oldunreal.com
developer at oldunreal.com
Sun Sep 2 14:36:33 PDT 2007
Gave it short look, but it doesn't seem to provide either what i need.
As a matter of fact, i need exactly what alutLoadMemoryFromFileImage is
supposed to do, but simply not provides:
alutLoadMemoryFromFileImage
Name
alutLoadMemoryFromFileImage - convert in-memory sound data into
OpenAL-like data
Synopsis
ALvoid *alutLoadMemoryFromFileImage (const ALvoid *data,
ALsizei length,
ALenum *format,
ALsizei *size,
ALfloat *frequency);
alutLoadMemoryFromFileImage tries to guess the sound data format by
looking at the contents of the memory region given as the first two
arguments and loads the sound data into a newly malloced buffer,
possibly converting it in the process. The format is guaranteed to be a
standard OpenAL format afterwards.
Tristan Grimmer wrote:
> I use Audiere (at tool-time, not-runtime) to process all sorts of
> formats. It doesn't get updated often, but supports a tonne of
> formats, seems stable, and is open source. It can load into memory
> and decompress: Ogg Vorbis, MP3, FLAC, uncompressed WAV, AIFF, MOD,
> S3M, XM, and IT. It can also play these files, but you might want to
> chop out all the "playing" code and possibly remove mp3 support as the
> licencing is scary.
>
> http://audiere.sourceforge.net/
>
> --tristan
>
>
> developer at oldunreal.com wrote:
>> I used alutLoadWAVMemory for a long time with lil problems so far,
>> but now it is deprectated i had to give alutLoadMemoryFromFileImage a
>> try. But what happened before very rarely - i now get "Unsupported
>> mode within an otherwise usable file type" for filetypes which worked
>> before.
>> Seems that not as many formats supported as with the old version.
>> As mentioned already, with the old version i had this problem too in
>> very rare cases, but now its even worse.
>>
>> Did anyone ever think to use something like libsndfile for that?
>>
>> In any case- what other options do i have to import more than the
>> formats ALUT provides me? I gave libsndfile a look, but it is only
>> designed to convert files, not in memory data. To convert the wav
>> files manually before import is not possible in my case, since its
>> for a game-patch and its impossible for me to re-edit any map or mod
>> to fit the requirements.
>>
>> Any suggestions are very welcome.
>>
>> Thx, Smirftsch
>>
>>
>> PS: added an example wav file which fails.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Openal mailing list
>> Openal at opensource.creative.com
>> http://opensource.creative.com/mailman/listinfo/openal
>>
More information about the Openal
mailing list