LWJGL Forum

Programming => OpenAL => Topic started by: mot on June 05, 2007, 11:48:51

Title: Way to route sound output to WAV?
Post by: mot on June 05, 2007, 11:48:51
After trying Fraps and similar programs to record in-game videos I'm kind of disappointed and I'd like to implement my own recording capability directly in the game. Images are simple, I can just take a screenshot each frame; the game code will cope with the incurred delays.

But I would also like to record the sound. Is there a way to create a custom OpenAL device that could save the resulting sound mix as a WAV file? Synchronization with the images is not a problem, I can add a beep/flash to the start and sync it later in a video editing app. I just need a continuous sound output from an app that will definitely not run in real-time.

Any ideas?
Title: Re: Way to route sound output to WAV?
Post by: erikd on September 08, 2007, 13:49:38
Maybe you can grab the sound using JavaSound? I'm not sure this works as I never tried it.
AFAIK, there's no wav file writing capabilities in JavaSound, but I've written a little class that does it, if you need it (but it's also not difficult to write yourself)...