[Portaudio] A small guidance needed in WMME

Phil Burk philburk at mobileer.com
Mon Dec 5 12:23:02 EST 2016

If you need low latency then you should probably use the callback API.
Just make sure you don't do much besides simple scaling and routing of
signals in the callback.
If you need to send the data over a network, or to disk, then pipe it
through a ringbuffer to another thread. That way you can avoid doing any
networking in the audio callback.

You may not be able to use a bidirectional stream. In that case you may
also need to use a ringbuffer to connect two unidirectional streams.

I think that with a combination of callbacks and ring buffers you can build
whatever topology you need.

Phil Burk

On Thu, Dec 1, 2016 at 9:31 AM, Nocs ... <NoCos30 at hotmail.com> wrote:

> Hello to all,
> I have lost myself in the translation of too many examples and tests and i
> am not sure what way should i choose to have a good and best choice so not
> to spend time uneccessarily.
> I made a blocking and non blocking input to output but i cant understand
> which is best,  after i see other tests with other ways i dont know if what
> i am doing is correct for my needs or not.
> What i want to achieve is to be able to get the input from microphone,
> save it to a buffer and also play that buffer to the output at the same
> time.
> It will be for a p2p chat service using connection between 2 pc`s for
> example so after i do my tests on the same pc  i have to be able to switch
> the output to listen to the incoming buffer from others pc microphone
> sended buffer later on.
> Which test or combinations of tests, examples and tuts suite me well ?
> Thanks in advance for you time
> _______________________________________________
> Portaudio mailing list
> Portaudio at lists.columbia.edu
> https://lists.columbia.edu/mailman/listinfo/portaudio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.columbia.edu/pipermail/portaudio/attachments/20161205/7aeb2c4e/attachment.html>

More information about the Portaudio mailing list