Lines Matching refs:currprefs
222 if (currprefs.sound_maxbsiz < 2 || currprefs.sound_maxbsiz > (256*1024)) {
223 fprintf(stderr, "Sound buffer size %d out of range.\n", currprefs.sound_maxbsiz);
224 currprefs.sound_maxbsiz = 8192;
226 sndbufsize = (currprefs.sound_maxbsiz + 1)&~1;
229 if (!currprefs.sound_freq) currprefs.sound_freq = 1;
230 if (clockval/currprefs.sound_freq < 80/*124*/ || clockval/currprefs.sound_freq > 65535) {
231 fprintf(stderr, "Can't use sound with desired frequency %d Hz\n", currprefs.sound_freq);
232 currprefs.sound_freq = 22000;
234 rate = currprefs.sound_freq;
286 if(currprefs.sound_bits == 16)
287 Sample0.ahisi_Type=(currprefs.stereo==1)?AHIST_S16S:AHIST_M16S;
289 Sample0.ahisi_Type=(currprefs.stereo==1)?AHIST_S8S:AHIST_M8S;
290 Sample0.ahisi_Length=sndbufsize/((currprefs.stereo?2:1)*(currprefs.sound_bits==16?2:1));
321 if(currprefs.sound_bits == 16) {
323 sample_handler = currprefs.stereo ? sample16s_handler
327 sample_handler = currprefs.stereo ? sample8s_handler
331 currprefs.stereo = 0;
338 currprefs.sound_bits,(currprefs.stereo==1 ? "stereo" : "mono"),