summaryrefslogtreecommitdiffstats
path: root/audio/amp/files
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>1998-11-02 15:58:15 +0000
committervanilla <vanilla@FreeBSD.org>1998-11-02 15:58:15 +0000
commita1f2b09b4c45ce86cdc89037b1f4ec2dd9d2cbf1 (patch)
tree5ce3d48f961580a5c875f0008ca3f36d2996909c /audio/amp/files
parenta0fad1e42c392e96cfe5e6e52724ce22dbb24050 (diff)
downloadFreeBSD-ports-a1f2b09b4c45ce86cdc89037b1f4ec2dd9d2cbf1.zip
FreeBSD-ports-a1f2b09b4c45ce86cdc89037b1f4ec2dd9d2cbf1.tar.gz
Unbreak this ports.
Diffstat (limited to 'audio/amp/files')
-rw-r--r--audio/amp/files/patch-aa35
1 files changed, 35 insertions, 0 deletions
diff --git a/audio/amp/files/patch-aa b/audio/amp/files/patch-aa
new file mode 100644
index 0000000..5457e02
--- /dev/null
+++ b/audio/amp/files/patch-aa
@@ -0,0 +1,35 @@
+--- audioIO_Linux.c.orig Mon Nov 2 22:20:38 1998
++++ audioIO_Linux.c Mon Nov 2 22:22:38 1998
+@@ -26,7 +26,9 @@
+
+ /* optimal fragment size */
+
++#ifndef OS_BSD
+ int AUSIZ = 0;
++#endif
+
+ /* declare these static to effectively isolate the audio device */
+
+@@ -42,6 +44,9 @@
+ void
+ audioOpen(int frequency, int stereo, int volume)
+ {
++#ifdef OS_BSD
++ int temp;
++#endif
+ int supportedMixers, play_format=AFMT_S16_LE;
+
+ if ((audio_fd = open ("/dev/dsp", O_WRONLY, 0)) == -1)
+@@ -78,7 +83,12 @@
+ if (volume != -1)
+ audioSetVolume(volume);
+
++#ifdef OS_BSD
++ temp = AUSIZ;
++ if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &temp) == -1)
++#else
+ if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &AUSIZ) == -1)
++#endif
+ die("Unable to get fragment size\n");
+ }
+
OpenPOWER on IntegriCloud