From 8d070c0bb358560bfcf7218b0e1cfdb7f0ed070f Mon Sep 17 00:00:00 2001 From: Sojourner Truth <jon.w.wilkes@gmail.com> Date: Sun, 24 Jul 2016 17:35:30 -0400 Subject: [PATCH] fix #91: Jack-related bug in audio preferences Move an ifdef with a GUI-messaging side-effect out of the way of an incrementally built gui message. (And possibly a good argument for why the gui_start_vmess interface might be a bad idea...) --- pd/src/s_audio.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pd/src/s_audio.c b/pd/src/s_audio.c index 0383d54a7..14e113ed5 100644 --- a/pd/src/s_audio.c +++ b/pd/src/s_audio.c @@ -741,12 +741,6 @@ void glob_audio_properties(t_pd *dummy, t_floatarg flongform) &blocksize); //rate = (int)sys_getsr(); -#ifdef USEAPI_JACK - if (sys_audioapiopened == API_JACK) - { - sys_setchsr(audio_nextinchans, audio_nextoutchans, rate); - } -#endif /* JACK */ /* post("naudioindev %d naudiooutdev %d longform %f", naudioindev, naudiooutdev, flongform); */ @@ -815,6 +809,13 @@ void glob_audio_properties(t_pd *dummy, t_floatarg flongform) gui_end_vmess(); +#ifdef USEAPI_JACK + if (sys_audioapiopened == API_JACK) + { + sys_setchsr(audio_nextinchans, audio_nextoutchans, rate); + } +#endif /* JACK */ + // not sure why we were deleting the key 0 here... // gfxstub_deleteforkey(0); // gfxstub_new(&glob_pdobject, (void *)glob_audio_properties, buf); -- GitLab