play a sample in a buffer

bridged with qdn.public.ddk.audio
Post Reply
arno stoum

play a sample in a buffer

Post by arno stoum » Mon May 20, 2002 10:47 pm

Hi,

Do I have to dive into the Audio DDK to do this:

When an audio sample arrive from an ethernet network in a ring buffer (with
io-net). It is send to the sound card to be played...

I'm a student and I already made the network part of my end-of-study project
with the network DDK.
But I'm running out of time...

If somebody could just show me the way or send me some examples, I would be
really, really thankful...

Something else: I tried to download Igor's ESS driver but the address
doesn't seems to be this one anymore :
http://members.home.com/kovalenko/software/ess ........ a server problem?

Thanks a lot to anybody who can help me and sorry for my English....

Arnaud Stoumont

Mike Gorchak

Re: play a sample in a buffer

Post by Mike Gorchak » Tue May 21, 2002 5:04 am

When an audio sample arrive from an ethernet network in a ring buffer
(with
io-net). It is send to the sound card to be played...
Are you sure in that you need the Audio DDK ??? DDK - driver development
kit, it is intended for hardware, but not for software.

If you want some help, please concretize you problem more wider ...

Maybe you need client part of Audio DDK, so-called ALSA compatible layer ?

arno stoum

Re: play a sample in a buffer

Post by arno stoum » Tue May 21, 2002 10:14 am

Well, I know that for the network part of my project which was sending data
without TCP/IP, I had to play with the network DDK even if I didn't write
any hardware driver...

For the audio part, I would thank god if a simple function exist to do that
:

1) an ethernet packet arrives in the ethernet card buffer. The Ethernet
packet contains two 24bits samples: one for the right channel, one for the
left...

2) IF IT'S NEEDED, they are placed into a ring buffer . It would be faster
if I could play with pointers but I don't know how if it's possible yet...

3)The samples are sent to the sound card DSP to be played.

I guess it would be something like a thread sleeping between the arrival of
the samples....

I think the best thing to do is reading the audio DDK and stop bothering you
before I know a little bit more how it works...

Thanks a lot,

Arnaud Stoumont

arno stoum

Re: play a sample in a buffer

Post by arno stoum » Tue May 21, 2002 11:24 am

So audio-DDK is not like network DDK, you can not do any application with it
(like down produceer, filter...)
Somebody told me about the Audio Developpers guide, I think that's what I
need!

Thanks,

Arnaud Stoumont

Post Reply

Return to “qdn.public.ddk.audio”