Implementing audio recording - Debugging log

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. :)

nine comments, already:

lol :)
white tiger - 21 01 08 - 17:59

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 - 21 01 08 - 19:18

“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.
shoggun - 21 01 08 - 19:53

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!
zitzu - 21 01 08 - 20:55

shoggun = tool
Joseph Smith - 22 01 08 - 03:45

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

LMAO!! LOL niko.. I guess Skype isn’t useless after all ;-)
MasterGod - 22 01 08 - 13:50

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?
Michael - 22 01 08 - 18:47

cool :)

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


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.