pkgsrc/lang/squeak-vm/patches/patch-ad
asau e8cd3997bf Import Squeak VM 3.11.3 revision 2135 as lang/squeak-vm.
Squeak is Smalltalk implementation which is direct ancestor
of Alan Kay's Smalltalk-80.
2010-02-11 00:58:19 +00:00

26 lines
972 B
Text

$NetBSD: patch-ad,v 1.1.1.1 2010/02/11 00:58:19 asau Exp $
Allow customization of audio devices.
--- unix/vm-sound-OSS/sqUnixSoundOSS.c.orig 2008-09-02 22:49:45.000000000 +0400
+++ unix/vm-sound-OSS/sqUnixSoundOSS.c 2010-02-10 23:13:27.000000000 +0300
@@ -1172,6 +1172,10 @@
static int sound_parseArgument(int argc, char **argv)
{
if (!strcmp(argv[0], "-nomixer")) return noSoundMixer= 1;
+ else if (argv[1]) {
+ if (!strcmp(argv[0], "-playback")) {dev_dsp.path = argv[1]; return 2;}
+ if (!strcmp(argv[0], "-capture")) {dev_dsp1.path = argv[1]; return 2;}
+ }
return 0;
}
@@ -1179,6 +1183,8 @@
{
printf("\nOSS <option>s:\n");
printf(" -nomixer disable mixer (volume) adjustment\n");
+ printf(" -playback <name> play to the named sound device (default: %s)\n", dev_dsp.path);
+ printf(" -capture <name> record from the named sound device (default: %s)\n", dev_dsp1.path);
}
static void sound_printUsageNotes(void)