[LAD] Getting jack samplerate and buffersize with portaudio.

Harry van Haaren harryhaaren at gmail.com
Fri Mar 16 23:55:28 UTC 2012


If your using *just* the PortAudio API, you can't call any of the JACK API
calls.
PortAudio will provide your program with what "PaStreamParameters" you give
it. This means that PortAudio will do resampling of audio to the samplerate
that your program opened the stream with... kind of a different concept to
JACK.

In short with PortAudio, you tell it what sampRate & bufSize you want, it
takes care of providing that to you.
JACK tells you to run @ sampRate = x & bufSize = y, and that's that.

I'll advise if your working on a pro audio application to program to JACK,
and not PortAudio. Reasons: it provides MIDI sample accurate with audio,
gives much more "pro" api, no sample rate conversions, no bloat, just pure
JACK :)

-Harry

On Fri, Mar 16, 2012 at 10:38 PM, Rafael Vega <email.rafa at gmail.com> wrote:

> Hello. I'm using portaudio19 to write an app that connects to jack (and
> alsa) and I can't find anywhere in the portaudio api a way to ask jack for
> the current samplerate and buffersize.
>
> ¿Am I missing something obvious?
>
> ¿Do I have to use the jack api to get these params and then be able to use
> the portaudio api for starting a stream, implementing the audio callback,
> etc?
>
>
> ______________________________**_________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.**linuxaudio.org<Linux-audio-dev at lists.linuxaudio.org>
> http://lists.linuxaudio.org/**listinfo/linux-audio-dev<http://lists.linuxaudio.org/listinfo/linux-audio-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20120316/7df767af/attachment.html>


More information about the Linux-audio-dev mailing list