Full Duplex audio using ALSA [Through UDP] .
hello all,
the present work of mine is in the area of transfering audio through UDP.
i am stuck up in a stage where i am hearing to my own voice instead i should have heard the other persons voice. much of my code is from latency.c file from alsa-proj, and i am hearing Cliche sound for every iteration of the for loop, i think this is because of
initail writes that latency.c does for playback.
this initialises sound card to read and write if i am correct. please let me know the possible solution to get audio through UDP. Thanks
regards,
Koushik P S R
Quoted 18 lines · --- Clemens Ladisch
Quoted 1 line · Koushik jaikishan
i am not able to read constant amount of data from
the
Quoted 1 line
sound card i dont know why, it always gives me -
11 as
Quoted 1 line
the returned value for reading 960 bytes of data.
-11 is
-EAGAIN. You would be able to read some data if you waited
some time.Either disable the non-blocking mode with
snd_pcm_nonblock, or wait
withsnd_pcm_wait, or, if you have other devices to wait for, use the
snd_pcm_poll_* functions withpoll().
Quoted 4 lines
HTH
Clemens
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
Quoted 4 lines · Koushik jaikishan
hello all,
the present work of mine is in the area of transfering audio through UDP.
So is mine.
Quoted 4 lines
[problem description snipped ]
please let me know the possible solution to
get audio through UDP.
I have no answer to your programming problems. (And I probably would not have even if it was well described, which it is not.)
One possible solution to your task is to use jack.udp and udp.sync. As far as I have understood it (I may be wrong), this solution does not deal with all problems that may arise when doing what you are trying to do. But it may still be useful to you.
I am working on a project similar to yours myself (<URL:
http://www.q2s.ntnu.no/~asbjs/ldas/ldas.html >). If this ends up in a releaseable state, it is possible that it will one day be released.
(Please reply to the list, not directly to me.)
Asbjørn
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click