mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-26 21:41:27 -04:00
25 lines
609 B
Plaintext
25 lines
609 B
Plaintext
$NetBSD: patch-ad,v 1.5 2014/11/20 13:07:12 mef Exp $
|
|
|
|
Let device portable over environment
|
|
|
|
--- src/output/oss.c.orig 2009-12-05 21:26:23.000000000 +0100
|
|
+++ src/output/oss.c 2010-02-06 20:09:39.000000000 +0100
|
|
@@ -167,7 +167,7 @@
|
|
if(!ao) return -1;
|
|
|
|
if(!ao->device) {
|
|
- ao->device = "/dev/dsp";
|
|
+ ao->device = DEVOSSAUDIO;
|
|
usingdefdev = 1;
|
|
}
|
|
|
|
@@ -176,7 +176,7 @@
|
|
if(ao->fn < 0)
|
|
{
|
|
if(usingdefdev) {
|
|
- ao->device = "/dev/sound/dsp";
|
|
+ ao->device = DEVOSSSOUND;
|
|
ao->fn = open(ao->device,O_WRONLY);
|
|
if(ao->fn < 0) {
|
|
if(!AOQUIET) error("Can't open default sound device!");
|