Commit 8d070c0b authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

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...)
parent 7abf7dbc
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment