Re: fake/generic audio output device
Chris Robinson <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On Thursday, April 28, 2011 10:28:43 AM Jon Bardin wrote: > That is to say, this device would basically not connect to any real > hardware, but would connect to a set of predefined buffers (or provide > a mechanism that i could copy the buffers out of) Hi. The Git version of OpenAL Soft has some methods for a loopback device, which allows you to write the mixed data into your own buffers. The functions are currently experimental and may change in the future, but they can be played around with and will eventually be stablized. The functions you'd be interested in are alcLoopbackOpenDeviceSOFT, alcIsRenderFormatSupportedSOFT, and alcRenderSamplesSOFT. Also make note of the ALC_FORMAT_TYPE_SOFT and ALC_FORMAT_CHANNELS_SOFT context-creation attributes, which should be used along with ALC_FREQUENCY. Here's a quick test to show how it currently works. It uses Alure to handle playing a file and it uses SDL for output... hopefully it should be apparent how it works: http://kcat.strangesoft.net/alclbtest.c _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal