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
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@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev