Re: Is it possible to save 3D sound to file, instead of playing it?
Chris Robinson <[email protected]> Tue, 07 May 2013 12:15:21 -0700
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On 04/30/2013 02:01 PM, Scott Jones wrote: > Hello, > > I am trying to find a suitable library for an internal project. > > All of the examples I saw were for playing 3D audio. Is it possible to > create 3D audio and save it to a file instead of playing it? Hi. With OpenAL Soft, you have a couple ways. One option is to use the Wave Writer backend. The downside of this method is that it needs to be explicitly setup in the config file to be used. However, this will automatically write out audio to a .wav file in real time, starting from when an ALCcontext is created. A second option is to use ALC_SOFT_loopback[1]. Using this extension, you can handle everything in-code (no need to mess around with config files), and have OpenAL Soft mix audio as fast or slow as you want, although you'll be responsible for writing the wave file (making the appropriate headers, etc). If you have Rapture3D, there's AL_EXT_FOLDBACK[2]. This extension also allows you to handle everything in-code, although it's limited to stereo and the sound will still play through the audio device. [1] http://kcat.strangesoft.net/openal-extensions/SOFT_loopback.txt [2] http://icculus.org/alextreg/index.php?operation=op_showext&extname=AL_EXT_FOLDBACK _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal