Search found 9 matches

by nahumb
Mon Jan 18, 2021 9:05 pm
Forum: Raspberry Pi
Topic: Jack-Audio process callback time period
Replies: 12
Views: 11995

Re: Jack-Audio process callback time period

One more great input Jeff. Thank you. I will modify it as follows (some of it is already implemented) 1. Sample-rate and buffer-size will be variables (not constants). 2. Default values will be initiated as default hardcoded values or per user last manual settings (see hereafter). 3. User will be ab...
by nahumb
Fri Jan 15, 2021 10:47 pm
Forum: Raspberry Pi
Topic: Jack-Audio process callback time period
Replies: 12
Views: 11995

Re: Jack-Audio process callback time period

Hi Jeff, Wow, thank you so much for sharing your project. Most certainly it will take me days to get in and learn what and how you do it. Thanks. And now for the bottom line - I have resolved the issue :-) The fact that I get the JACK callback in a double rate was an issue I could not understand. I ...
by nahumb
Thu Jan 14, 2021 10:55 am
Forum: Raspberry Pi
Topic: Jack-Audio process callback time period
Replies: 12
Views: 11995

Re: Jack-Audio process callback time period

I'm interested in knowing the rate as my code is a realtime synthesizer application (like FluidSynth), so next audio block is calculated/processed soon after the previous one is delivered to JACK and this new block is delivered to JACK at the next interval to keep delay to a minimum. I will look int...
by nahumb
Wed Jan 13, 2021 9:33 pm
Forum: Raspberry Pi
Topic: Jack-Audio process callback time period
Replies: 12
Views: 11995

Re: Jack-Audio process callback time period

Thanks for a very comprehensive and educating reply. Buffer size is indeed 512 samples and callbacks are generated every half-buffer time, yet, number of frames in each callback request i get is 512 and not 256. I have also put a trap inside the callback function looking for nframs != 512 -> always ...
by nahumb
Tue Jan 12, 2021 11:29 pm
Forum: Raspberry Pi
Topic: Jack-Audio process callback time period
Replies: 12
Views: 11995

Re: Jack-Audio process callback time period

Hi folderol. Thanks for your prompt reply. My apology, but not sure I understand your answer :roll: Do you mean that I get 2 callbacks for each buffer (period) and one is ignored by the Jack-server? What do you mean by "one or other is being silently adjusted"? (ignored?). Thanks, Nahum.
by nahumb
Tue Jan 12, 2021 8:51 pm
Forum: Raspberry Pi
Topic: Jack-Audio process callback time period
Replies: 12
Views: 11995

Jack-Audio process callback time period

Hi, I'm using Jack API in a synthesizer c++ program I'm developing running on a Raspberry Pi 4. Sample rate is 44100 ( jackSampleRate = jack_get_sample_rate(client_out); ) Buffer size is set to 512 ( jack_set_buffer_size(client_out, _JACK_AUD_PERIOD_SIZE); ) (#define _JACK_AUD_PERIOD_SIZE 512). Calc...
by nahumb
Tue Jan 12, 2021 8:48 pm
Forum: Developer's Section
Topic: Jack-Audio process callback time period/Rate
Replies: 1
Views: 9669

Jack-Audio process callback time period/Rate

Hi, I'm using Jack API in a synthesizer c++ program I'm developing running on a Raspberry Pi 4. Sample rate is 44100 ( jackSampleRate = jack_get_sample_rate(client_out); ) Buffer size is set to 512 ( jack_set_buffer_size(client_out, _JACK_AUD_PERIOD_SIZE); ) (#define _JACK_AUD_PERIOD_SIZE 512). Calc...
by nahumb
Tue Jul 31, 2018 7:39 am
Forum: Developer's Section
Topic: Jack Audio and Stereo Channels
Replies: 1
Views: 2288

Re: Jack Audio and Stereo Channels

Issue resolved.
Embarrassed to let you all know that the issue was a short circuit in the audio cable........ :oops:
But now it is OK. Full stereo separation :D
Nahum.
by nahumb
Mon Jul 30, 2018 9:25 am
Forum: Developer's Section
Topic: Jack Audio and Stereo Channels
Replies: 1
Views: 2288

Jack Audio and Stereo Channels

Hi, I'm developing a real time c++ sound synthesis application (currently running on a Raspi). It uses 2 Jack Audio output channels and works perfectly. The issue is that both channels are mapped as mono channels to both Left and Right sound card (USB) channels, while I want each to be routed to one...