[Portaudio] MemFunCallbackStream to capture audio from input devices?
victor
Victor.Lazzarini at nuim.ie
Sat Oct 3 12:25:53 EDT 2009
I guess you can look at the examples in the sources.
Here's a summary:
You can either use a callback or do it with the blocking function.
The callback would have the following prototype:
int audio_callback(const void *input, void *output, unsigned long
frameCount,
const PaStreamCallbackTimeInfo *timeInfo,
PaStreamCallbackFlags statusFlags, void *userData)
which is fairly self-explanatory.
The blocking input is done with all call like this
Pa_ReadStream(handle, buffer, BUFFRAMES);
where handle is your open stream, buffer is where you want to read the data
in
and BUFFRAMES the number of frames you are reading.
Victor
----- Original Message -----
From: "JIA Pei" <jp4work at gmail.com>
To: <portaudio at music.columbia.edu>
Sent: Saturday, October 03, 2009 4:37 PM
Subject: [Portaudio] MemFunCallbackStream to capture audio from input
devices?
> Hi, still:
>
> I really would like to get some help from port audio team for
> capturing audio from my input devices.
> Can you please just help to show how to use MemFunCallbackStream() to do
> so?
>
>
>
> Best Regards
> JIA Pei
>
>
> --
> Welcome to Vision Open
> http://www.visionopen.com
> _______________________________________________
> Portaudio mailing list
> Portaudio at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/portaudio
More information about the Portaudio
mailing list