capturing sound

Blitz3D Forums/Blitz3D Programming/capturing sound

Andy UK(Posted 2006) [#1]
Would it be possible to capture audio that the soundcard is currently playing in raw format or wav? I want to set the recording side of the soundcard to "what u hear" to capture anything it plays then get this audio data, sample by sample and pass it to the STDIN of a commandline audio encoder such as oggenc. Is this possible in Blitz? Windows API?


b32(Posted 2006) [#2]
You could use this:
http://blitzbasic.co.nz/codearcs/codearcs.php?code=845

Here is the decls file:


edit:
Or you could use the MCI commands:



jfk EO-11110(Posted 2006) [#3]
I think there's also a working example in the archives. There's also an example on how to control the mixer, so you could mute certain devices.