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





Comments:


lol :)
white tiger
Quote
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
Quote
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.
shoggun
Quote
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!
zitzu
Quote
2008-01-21 20:55:00


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


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


LMAO!! LOL niko.. I guess Skype isn't useless after all ;-)
MasterGod
Quote
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?
Michael
Quote
2008-01-22 18:47:00


cool :)

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


Add comment:


Posted by:


Enter the missing letter in: "Internati?nal"


Text:

 

  

Possible Codes


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

Emoticons