Mixing the Audiodata of several DataSources (JMF/JavaSound)

  • Thread starter einherjar via JavaKB.com
  • Start date
E

einherjar via JavaKB.com

Hi,

my problem is the following.

I get several incoming RTPStreams with Audiodata. These ones I have to mix
so that i get one Stream (not with several Tracks) that i can decode as
g711 and then send it to several participants.

But I have no idea how to do the mixing. In JavaSound i could simply add
the samples. But I can?t access them in JMF. The DataSource won?t give them
to me.
How can I get an AudioInputStream of it? So that I can access the samples
an add them together?

And after that, how can I make a new DataSource, to decode the new
AudioStream and send it away?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top