j_e_f_f_g wrote:dawhead wrote:you... claim... the number given via the -p flag ends up being used in a call to set the sample rate in ALSA.
Absolutely untrue. I
never made any such claim. I corrrectly stated that it sets the soundcard dma buffer size.
hmm, lets see:
Um no, you are confused by the numbers. That doesn't represent the buffer latency of the jack app. That's simply the value jack passes to ALSA's snd_pcm_hw_params_set_rate_near(), to set the soundcard's dma buffer size.
So lets take a look just to humor you:
Code: Select all
frame_rate = driver->frame_rate ;
err = snd_pcm_hw_params_set_rate_near (handle, hw_params,
&frame_rate, NULL) ;
driver->frame_rate = frame_rate ;
this doesn't use the value given for the -p argument, it uses the value given for the -r argument. given that both keys are on the home row, we could perhaps believe you made a typo, but looking back at the context that seems unlikely. moreover, lets take a look at the docs on [tt]snd_pcm_hw_params_set_rate_near()[/tt] ..
"Restrict a configuration space to have rate nearest to a target. " i.e it has absolutely nothing to do with buffer size at all.
I then went on to explain specifically why this setting, unlike with edrummer, does not determine a jack app's latency, contrary to male's misleading implication.
and your explanation was completely and utterly wrong. in almost every possible way, from cited code, to relevant parameters, to details of how modern and not-so-modern audio hardware works, to ALSA functionality, to JACK design ... just wrong, wrong, wrong.
you did this aggressively to claim that another developer with years of experience "doesn't understand JACK".
Reading minds to ascertain motives, are we Miss Cleo? Wrong again. I posted to correct male's misleading implication. Which I did.
I'm not reading minds. I'm reading this:
Um no, you are confused by the numbers.
and this
I've explained this to you before and you continue with your... well "lies and misinformation" about jack and alsa. It's obvious to me that you haven't studied the alsa and jack codebases, you therefore don't have the tech knowledge to comment on this topic, and by talking about the -p setting, you have no idea how latency manifests in jack, much less alsa.
That's aggressive, whether you intended itor not. And yes, for the benefit of others reading this, I do intend to be aggressive myself, because your posts here are full of crap.
why the hell are you still talking about this?
Because there have been further misleading and/or factually incorrect repliies posted, such as yours to which I'm replying now.
Dude, I designed and wrote JACK. I played a significant role in the design of the ALSA APIs that JACK and eDrummer are using. I'm telling you that the things you are posting here are wrong. I'm asking you STFU because you're creating another breadcrumb trail of incorrect assertions about audio I/O on linux, computers in general, with JACK, with ALSA and a bunch of other stuff. Please just shut up and go back to writing code. If you don't want to use JACK, that's fine. But please stop spouting off about stuff that you've failed to understand (or at least, failed to demonstrate understanding in what you post here).