<div dir="ltr">(Added jack-devel mailing list again)<div><br></div><div>Yes, I would think that jack_get_sample_rate is the only way to know the sample rate.</div><div><br></div><div>If qjackctl shows different information it must be a bug in qjackctl.</div><div>However, I noticed that your jack version is 7 years old. If qjackctl displayed</div><div>the wrong information in 2009, it's probably been fixed now.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 13, 2016 at 11:00 AM, ROBERT WOLF <span dir="ltr"><<a href="mailto:robert.wolf@hercsmusicsystems.com.au" target="_blank">robert.wolf@hercsmusicsystems.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
In this case I would understand as follows:<br>
1. Starting JACK server with 22050 Hz sampling rate is more-or-less
a recommendation only.<br>
2. The way to know the sampling rate for sure is to call <b>jack_get_sample_rate</b>.<br>
3. I can testify that the actual sampling rate is the same as
reported by <b>jack_get_sampling_rate</b>, because if it was not
then my program would sound differently.<br>
<br>
If my understanding is correct then I consider the case closed!<br>
<br>
Cheers,<br>
<br>
Robert<div><div class="h5"><br>
<br>
<div class="m_3957008436136102531moz-cite-prefix">On 13/12/16 20:13, Kjetil Matheussen
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">(putting back jack-devel again)
<div><br>
</div>
<div>It just says that it configures for 22050Hz, it doesn't say
whether it succeeded.</div>
<div>So things seems to work as it should.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Dec 13, 2016 at 10:38 AM,
ROBERT WOLF <span dir="ltr"><<a href="mailto:robert.wolf@hercsmusicsystems.com.au" target="_blank">robert.wolf@<wbr>hercsmusicsystems.com.au</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Two programs show
this information:<br>
<br>
1. QJackCtl.<br>
2. When I run my own program <b>AND</b> jack server is
not running, <b>THEN</b> for some reason the jack server
gets started (apparently using the command stored in
.jackdrc file) and I see the following printout:<br>
<br>
jackd 0.122.0<br>
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack
O'Quinn, Torben Hohn and others.<br>
jackd comes with ABSOLUTELY NO WARRANTY<br>
This is free software, and you are welcome to redistribute
it<br>
under certain conditions; see the file COPYING for details<br>
<br>
JACK compiled with System V SHM support.<br>
loading driver ..<br>
apparent rate = 22050<br>
creating alsa driver ... hw:PCH,0|hw:PCH,0|1024|2|22050<wbr>|0|0|nomon|swmeter|-|32bit<br>
ALSA lib conf.c:4578:(parse_args) Unknown parameter 1<br>
ALSA lib conf.c:4711:(snd_config_expand<wbr>) Parse
arguments error: No such file or directory<br>
ALSA lib control.c:953:(snd_ctl_open_no<wbr>update)
Invalid CTL hw:PCH,0<br>
control open "hw:PCH,0" (No such file or directory)<span><br>
configuring for 22050Hz, period = 1024 frames (46.4 ms),
buffer = 2 periods<br>
</span> ALSA: final selected sample format for capture:
32bit integer little-endian<br>
ALSA: use 2 periods for capture<br>
ALSA: final selected sample format for playback: 32bit
integer little-endian<br>
ALSA: use 2 periods for playback<br>
<br>
<b>HOWEVER!!!!<br>
<br>
</b><b>jack_get_sample_rate(...);</b> still reports <b>44100</b>.<br>
<br>
How intriguing?!
<div>
<div class="m_3957008436136102531h5"><br>
<br>
<br>
<div class="m_3957008436136102531m_6133301017267102254moz-cite-prefix">On
13/12/16 19:53, Kjetil Matheussen wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Which program shows this window?
<div><br>
</div>
<div>(added jack-devel mailing list back to the
conversation)</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Dec 13, 2016 at
8:35 AM, ROBERT WOLF <span dir="ltr"><<a href="mailto:robert.wolf@hercsmusicsystems.com.au" target="_blank">robert.wolf@hercsmusicsystems<wbr>.com.au</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> There
is a window with messages and it says this:<br>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">configuring
for 22050Hz, period = 1024 frames (46.4
ms), buffer = 2 periods</p>
<div>
<div class="m_3957008436136102531m_6133301017267102254h5"> <br>
<br>
<div class="m_3957008436136102531m_6133301017267102254m_7375959617912838316moz-cite-prefix">On
13/12/16 11:09, Kjetil Matheussen
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon,
Dec 12, 2016 at 7:33 AM, ROBERT
WOLF <span dir="ltr"><<a href="mailto:robert.wolf@hercsmusicsystems.com.au" target="_blank">robert.wolf@hercsmusicsystems<wbr>.com.au</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"> Dear
All,<br>
<br>
According to the
documentation <b>jack_get_sample_rate</b>
reports the sample rate as
was used by <b>jackd</b>.<br>
This does not happen in my
case.<br>
I start <b>jackd</b> using
different sampling rates
(i.e. 22050, ect.).<br>
JACK reports that it does
indeed uses the selected
sampling rate.<br>
<br>
But <b>jack_get_sample_rate</b>
always returns 44100.<br>
<br>
Why?<br>
<br>
</div>
</blockquote>
<div><br>
</div>
<div>How did Jack report that it
used the selected sampling
rate?</div>
<div>I.e. where did you read
that?</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>