Implementing audio recording - Debugging log

Posted on:January 21 2008

Last week I was working on adding the feature 'audio capturing' to irrKlang. Basically this is recording audio data, using for example a microphone and some options to work with the data and to play it back again.
The most difficult part is to design a simple programming interface for this which is simple to use and which also works on all supported platforms and audio drivers. The implementation itself isn't that complicated. At least that was the plan :)
After I had finished the audio recording implementation in DirectSound8, I started to test it. The test program worked, and reported to have recorded some audio, but when I played it back nothing happened. Silence.
What was wrong? Had the driver enumerator selected a wrong device? Didn't the capture buffer copy thread work? Was there something wrong in the new pure-PCM-data audio source which was used to play back the recorded audio? There were so many possible points of failure, but most of them had been already tested out and I couldn't imagine what was wrong. So I debugged and investigated, and had nailed it down to the recording part. Somehow no recorded audio data came through. But I still didn't find the problem. Strange.
Then, someone gave me a call using skype. I accepted the call, but my conversational partner didn't hear me. D'oh! The microphone was broken. :)


lol :)
white tiger
2008-01-21 17:59:00

Hmm you might wanna check your power supply for failure. Make sure you're not using windows i heard microphones don't work on windows.
Joseph Smith
2008-01-21 19:18:00

"Make sure you’re not using windows i heard microphones don’t work on windows."

And I heard some people miserably fail when talking about things they don't know.
2008-01-21 19:53:00

A friend of mine, a network administrator for a big firm, always tells me: "first of all check hardware layer". This is not only true for networks! lol!
2008-01-21 20:55:00

shoggun = tool
Joseph Smith
2008-01-22 03:45:00

Thanks zitzu, that is actually a great piece of advice.
2008-01-22 05:56:00

LMAO!! LOL niko.. I guess Skype isn't useless after all ;-)
2008-01-22 13:50:00

Audio capture... like for recording audio, or for capturing audio for a voice chat feature?

Audacity is a great F/OSS recording program with a lot of features. Maybe taking a look at the source would give you a few ideas?
2008-01-22 18:47:00

cool :)

hey niko btw, will you be ever in the irrlicht channel? we miss you :P
2008-01-23 19:11:00

Add comment:

Posted by:

Enter the missing letter in: "Internationa?"




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]