If your using *just* the PortAudio API, you can't call any of the JACK API calls.<br>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.<br>
<br>In short with PortAudio, you tell it what sampRate & bufSize you want, it takes care of providing that to you.<br>JACK tells you to run @ sampRate = x & bufSize = y, and that's that.<br><br>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 :)<br>
<br>-Harry<br><br><div class="gmail_quote">On Fri, Mar 16, 2012 at 10:38 PM, Rafael Vega <span dir="ltr"><<a href="mailto:email.rafa@gmail.com">email.rafa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
<br>
żAm I missing something obvious?<br>
<br>
ż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?<br>
<br>
<br>
______________________________<u></u>_________________<br>
Linux-audio-dev mailing list<br>
<a href="mailto:Linux-audio-dev@lists.linuxaudio.org" target="_blank">Linux-audio-dev@lists.<u></u>linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-dev" target="_blank">http://lists.linuxaudio.org/<u></u>listinfo/linux-audio-dev</a><br>
</blockquote></div><br>