1
diff -urN zynaddsubfx-2.2.1.orig/src/Output/JACKaudiooutput.C zynaddsubfx-2.2.1/src/Output/JACKaudiooutput.C
2
--- zynaddsubfx-2.2.1.orig/src/Output/JACKaudiooutput.C 2005-03-12 13:16:26.000000000 -0500
3
+++ zynaddsubfx-2.2.1/src/Output/JACKaudiooutput.C 2007-12-17 06:39:20.000000000 -0500
10
for (int i=0;i<15;i++){
11
if (i!=0) snprintf(tmpstr,100,"ZynAddSubFX_%d",i);
14
fprintf(stderr,"Internal SampleRate = %d\nJack Output SampleRate= %d\n",SAMPLE_RATE,jack_get_sample_rate(jackclient));
15
if ((unsigned int)jack_get_sample_rate(jackclient)!=(unsigned int) SAMPLE_RATE)
16
- fprintf(stderr,"It is recomanded that the both samplerates to be equal.\n");
17
+ fprintf(stderr,"It is recommended that both of the samplerates be equal.\n");
19
jack_set_process_callback(jackclient,jackprocess,0);
20
jack_set_sample_rate_callback(jackclient,jacksrate,0);
27
jack_connect(jackclient,jack_port_name(outport_left),"alsa_pcm:out_1");
28
jack_connect(jackclient,jack_port_name(outport_right),"alsa_pcm:out_2");
32
+ if ((ports = jack_get_ports (jackclient, NULL, NULL, JackPortIsPhysical|JackPortIsInput)) == NULL)
33
+ fprintf(stderr,"Cannot connect to jack output, you may hear no sound\n"); else {
34
+ if (jack_connect(jackclient,jack_port_name(outport_left),ports[0]))
35
+ fprintf(stderr,"Cannot connect to left output port\n");
36
+ if (jack_connect(jackclient,jack_port_name(outport_right),ports[1]))
37
+ fprintf(stderr,"Cannot connect to right output port\n");