Jump to content
  • Advertisement
Sign in to follow this  
Fredrik Elmegren

OpenAL & ADPCM (Windows)

This topic is 2544 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey!

Right, I'm having a hard time finding out whether OpenAL supports playing ADPCM-compressed .wav or not in a windows environment.

So, before I go experimenting, does anyone know if OpenAL (in windows) can decode ADPCM on the fly or would I first need to decode the sound and then send it to OpenAL?

Thanks in advance!

Best regards,

Freddy

Share this post


Link to post
Share on other sites
Advertisement
In general (that is, as core functionality), no. However, there some extensions such as AL_EXT_IMA4 or AL_LOKI_IMA_ADPCM_format.

Like most things in OpenAL which are not in the core spec, OpenAL-Soft is pretty much the only one to support them (and like always without any documentation), and that's pretty much it. Though your mileage may vary.

Share this post


Link to post
Share on other sites

Thank you for your reply! Very much appreciated smile.png



Alright, a follow up then:
This being the case, could (should even?) I then decode the ADPCM sound to PCM (using eg. ACM

) and then send it to OpenAL? (I'm working with an existing environment/engine and would prefer not having ro rebuild the whole shebang (it's huuuge!))

Thanks again!

Best regards,

Freddy

Share this post


Link to post
Share on other sites
If building OpenAL-Soft and bundling the lib is no forbidding hurdle (if you use MinGW, CMAKE can turn out being a real bitch), I'd just do that. OpenAL-Soft is the best available implementation in my opinion, with several formats, several other useful extensions (loop points, sub buffer) and very few nonsensical limitations as opposed to other implementations.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!