summaryrefslogtreecommitdiff
path: root/audio/audacity/patches/patch-am
blob: dcd5ace2a6ef796c2de45fb71da3fe2838e4fca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-am,v 1.3 2002/10/04 08:59:36 jlam Exp $

--- AudioIO.cpp.orig	Wed Jun  5 00:51:19 2002
+++ AudioIO.cpp
@@ -27,7 +27,7 @@ AudioIO *gAudioIO;
 
 #ifdef __WXGTK__
 bool gLinuxFirstTime = true;
-char gLinuxDevice[256] = "/dev/dsp";
+char gLinuxDevice[256] = DEV_DSP;
 #endif
 
 #ifdef BOUNCE
@@ -68,7 +68,7 @@ bool AudioIO::OpenPlaybackDevice(Audacit
    wxString deviceStr = gPrefs->Read("/AudioIO/PlaybackDevice", "");
 #ifdef __WXGTK__
    if (deviceStr == "")
-      deviceStr = "/dev/dsp";
+      deviceStr = DEV_DSP;
 #endif
    strcpy(mPlayNode.u.audio.devicename, deviceStr.c_str());
    strcpy(mPlayNode.u.audio.interfacename, "");
@@ -177,7 +177,7 @@ bool AudioIO::StartRecord(AudacityProjec
    wxString deviceStr = gPrefs->Read("/AudioIO/RecordingDevice", "");
 #ifdef __WXGTK__
    if (deviceStr == "")
-      deviceStr = "/dev/dsp";
+      deviceStr = DEV_DSP;
 #endif
    strcpy(mRecordNode.u.audio.devicename, deviceStr.c_str());
    strcpy(mRecordNode.u.audio.interfacename, "");