Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19068
Modified Files: Tag: devel_0_38 s_audio.c Log Message: smoother audio api changing ...
Index: s_audio.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_audio.c,v retrieving revision 1.5.4.13 retrieving revision 1.5.4.14 diff -C2 -d -r1.5.4.13 -r1.5.4.14 *** s_audio.c 11 May 2005 14:32:08 -0000 1.5.4.13 --- s_audio.c 13 May 2005 16:45:43 -0000 1.5.4.14 *************** *** 465,468 **** --- 465,469 ---- int naudiooutdev, audiooutdev[MAXAUDIOOUTDEV], choutdev[MAXAUDIOOUTDEV]; int rate, dacblocksize, advance, scheduler; + sys_close_audio(); sys_get_audio_params(&naudioindev, audioindev, chindev, &naudiooutdev, audiooutdev, choutdev, &rate, &dacblocksize, &advance, &scheduler); *************** *** 880,898 **** if (newapi) { ! if (newapi == sys_audioapi) ! { ! if (!audio_isopen()) ! sys_reopen_audio(); ! } ! else ! { sys_close_audio(); sys_audioapi = newapi; ! /* bash device params back to default */ audio_naudioindev = audio_naudiooutdev = 1; audio_audioindev[0] = audio_audiooutdev[0] = DEFAULTAUDIODEV; audio_audiochindev[0] = audio_audiochoutdev[0] = SYS_DEFAULTCH; ! sys_reopen_audio(); ! } glob_audio_properties(0, 0); } --- 881,894 ---- if (newapi) { ! if (newapi != sys_audioapi) ! { sys_close_audio(); sys_audioapi = newapi; ! /* bash device params back to default */ audio_naudioindev = audio_naudiooutdev = 1; audio_audioindev[0] = audio_audiooutdev[0] = DEFAULTAUDIODEV; audio_audiochindev[0] = audio_audiochoutdev[0] = SYS_DEFAULTCH; ! } ! sched_set_using_dacs(0); glob_audio_properties(0, 0); }