Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / squeak-vm / patches / patch-ad
blob803115982728d527ddaba5be60461c86b4498076
1 $NetBSD$
3 Allow customization of audio devices.
5 --- unix/vm-sound-OSS/sqUnixSoundOSS.c.orig     2008-09-02 22:49:45.000000000 +0400
6 +++ unix/vm-sound-OSS/sqUnixSoundOSS.c  2010-02-10 23:13:27.000000000 +0300
7 @@ -1172,6 +1172,10 @@
8  static int   sound_parseArgument(int argc, char **argv)
9  {
10    if (!strcmp(argv[0], "-nomixer")) return noSoundMixer= 1;
11 +  else if (argv[1]) {
12 +       if (!strcmp(argv[0], "-playback")) {dev_dsp.path = argv[1]; return 2;}
13 +       if (!strcmp(argv[0], "-capture")) {dev_dsp1.path = argv[1]; return 2;}
14 +  }
15    return 0;
16  }
18 @@ -1179,6 +1183,8 @@
19  {
20    printf("\nOSS <option>s:\n");
21    printf("  -nomixer              disable mixer (volume) adjustment\n");
22 +  printf("  -playback <name>      play to the named sound device (default: %s)\n", dev_dsp.path);
23 +  printf("  -capture <name>       record from the named sound device (default: %s)\n", dev_dsp1.path);
24  }
26  static void  sound_printUsageNotes(void)