Re: [LAD] Getting jack samplerate and buffersize with portaudio.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rafael Vega <email.rafa@...>
Cc: <linux-audio-dev@...>
Date: Friday, March 16, 2012 - 11:55 pm

--14dae9340d8d6e720304bb64f157
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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 =3D x & bufSize =3D 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 wrote:

> Hello. I'm using portaudio19 to write an app that connects to jack (and

r
use

--14dae9340d8d6e720304bb64f157
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

If your using *just* the PortAudio API, you can't call any of the JACK =
API calls.PortAudio will provide your program with what "PaStreamP=
arameters" 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 wa=
nt, it takes care of providing that to you.JACK tells you to run @ samp=
Rate =3D x & bufSize =3D y, and that's that.I'll advise=
if your working on a pro audio application to program to JACK, and not Por=
tAudio. Reasons: it provides MIDI sample accurate with audio, gives much mo=
re "pro" api, no sample rate conversions, no bloat, just pure JAC=
K :)
-HarryOn Fri, Mar 16, 2012 at 10:38 =
PM, Rafael Vega <email.rafa@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.

=BFAm I missing something obvious?

=BFDo I have to use the jack api to get these params and then be able to us=
e the portaudio api for starting a stream, implementing the audio callback,=
etc?

_______________________________________________
Linux-audio-dev mailing list
L=
inux-audio-dev@lists.linuxaudio.org

http://lists.linuxaudio.org/listinfo/linux-audio-dev

--14dae9340d8d6e720304bb64f157--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] Getting jack samplerate and buffersize with portau..., Harry van Haaren, (Fri Mar 16, 11:55 pm)