If OpenAL can do it, then so can JOAL. While I've never used this feature myself, there are OpenAL functions which look like they're related to capturing the sound going to the device. Whether it's the raw waveform or the post-processed data, I'm not sure. The commands are: - alcCaptureOpenDevice - alcCaptureCloseDevice - alcCaptureStart - alcCaptureStop - alcCaptureSamples

There's a bit of info in the OpenAL 1.1 spec document about how to use it. To summarize: - create a capture buffer using alcCaptureOpenDevice (here you can specify a format and device) - start audio capture using alcCaptureStart - when the app thinks there's enough data in the buffer (you can query it), get it using alcCaptureSamples - (you can pause capturing as an optimization, using alcCaptureStop) - disconnect from the capture device with alcCaptureCloseDevice

what Ulraq didnt mention is the enumeration of the input devices. the capture sample uses "alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER);" to get a double null terminated string containing all input devices. if you have more than one inputdevices, it would be very interesting if alc.alcGetStringImpl(NULL, ALC.ALC_CAPTURE_DEVICE_SPECIFIER) returns all of them.

Thanks for the suggestion. I've added ALC.alcGetCaptureDeviceSpecifiers() (in similar fashion to alcGetDeviceSpecifiers(), which was already there). This should show up in JOAL nightly builds dated 4/9 and later.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org