diff options
Diffstat (limited to 'audio/tracker/patches/patch-ac')
-rw-r--r-- | audio/tracker/patches/patch-ac | 55 |
1 files changed, 30 insertions, 25 deletions
diff --git a/audio/tracker/patches/patch-ac b/audio/tracker/patches/patch-ac index aa0b851653a..d933008bdf0 100644 --- a/audio/tracker/patches/patch-ac +++ b/audio/tracker/patches/patch-ac @@ -1,26 +1,31 @@ -$NetBSD: patch-ac,v 1.2 1998/08/07 10:36:18 agc Exp $ +$NetBSD: patch-ac,v 1.3 2004/07/27 22:25:31 agc Exp $ -*** Arch/PCux/audio.c.bak Fri Apr 12 20:30:37 1996 ---- Arch/PCux/audio.c Tue Nov 12 08:40:29 1996 -*************** -*** 9,14 **** ---- 9,17 ---- - #include <unistd.h> - #include <fcntl.h> - #include "extern.h" -+ #include "prefs.h" -+ #include "autoinit.h" -+ #include "watched_var.h" - - struct options_set *port_options=0; - -*************** -*** 116,121 **** ---- 119,125 ---- - } - samples_max = buf_max / dsize; - current_freq = f; -+ set_watched_scalar(FREQUENCY, f); - total = 0; - return f; - } +--- Arch/PCux/audio.c 2004/07/27 22:20:32 1.1 ++++ Arch/PCux/audio.c 2004/07/27 22:21:39 +@@ -9,6 +9,9 @@ + #include <unistd.h> + #include <fcntl.h> + #include "extern.h" ++#include "prefs.h" ++#include "autoinit.h" ++#include "watched_var.h" + + struct options_set *port_options=0; + +@@ -50,7 +53,7 @@ + int buf_max; + unsigned long possible, current; + +- audio = open("/dev/dsp", O_WRONLY, 0); ++ audio = open(DEVOSSAUDIO, O_WRONLY, 0); + if (audio == -1) + end_all("Error opening audio device"); + +@@ -116,6 +119,7 @@ + } + samples_max = buf_max / dsize; + current_freq = f; ++ set_watched_scalar(FREQUENCY, f); + total = 0; + return f; + } |