For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2005 > Problem capturing small audio blocks in C#









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem capturing small audio blocks in C#
APe

2005-01-23, 4:04 pm

Hello,
I'm trying to make a Full-Duplex audio application, and I would like to have
little delays sending the audio stream, so I need to capture audio in small
buffers and send it as soon as possible.
For the moment I just made the sound capture. I'm using the WaveIn from
P/Invoke library modified to stream the audio, instead of saving it to a
file. I'm programming it in C#. If I use large blocks of audio, I have no
problems, but as soon as I reduce them (200 ms or less) I have audio gaps...
It seems as if the device can't proccess the blocks so fast (I'm using a
XDA-II).

Can this be true? Or the device is perfectly capable to do it and it has to
be a programming error?

And... if it is true that the device can't work so fast using the .NET
Compact Framework technology, could this be done using native code?


Thanks in advance.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com