Discussion:
Is it possible to save 3D sound to file, instead of playing it?
Scott Jones
2013-04-30 21:01:43 UTC
Permalink
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?

Thanks in advance,

Scott
Chris Robinson
2013-05-07 19:15:21 UTC
Permalink
Post by Scott Jones
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
keghn
2013-05-25 20:22:59 UTC
Permalink
What example would you like to save to disk?
--
View this message in context: http://old.nabble.com/Is-it-possible-to-save-3D-sound-to-file%2C-instead-of-playing-it--tp35461752p35516440.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
Loading...