mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Fix Sound support
Submitted by: Rob Andrews
This commit is contained in:
parent
9c4293b3d2
commit
65292a27dc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122679
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= frodo
|
||||
PORTVERSION= 4.1b
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= emulators tk84
|
||||
MASTER_SITES= http://wwwthep.physik.uni-mainz.de/~cbauer/
|
||||
DISTNAME= FrodoV4_1b.Src
|
||||
|
20
emulators/frodo/files/patch-SID.cpp
Normal file
20
emulators/frodo/files/patch-SID.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
--- SID.cpp.orig 2002-01-02 21:18:59.000000000 +0000
|
||||
+++ SID.cpp 2004-11-27 15:51:44.000000000 +0000
|
||||
@@ -428,7 +428,7 @@
|
||||
int play_buf; // Number of buffer currently playing
|
||||
#endif
|
||||
|
||||
-#ifdef __linux__
|
||||
+#if defined(__linux__) || defined(__FreeBSD__)
|
||||
int devfd, sndbufsize, buffer_rate;
|
||||
int16 *sound_buffer;
|
||||
#endif
|
||||
@@ -1351,7 +1351,7 @@
|
||||
#elif defined(AMIGA)
|
||||
#include "SID_Amiga.i"
|
||||
|
||||
-#elif defined(__linux__)
|
||||
+#elif defined(__linux__) || defined(__FreeBSD__)
|
||||
#include "SID_linux.i"
|
||||
|
||||
#elif defined(SUN)
|
15
emulators/frodo/files/patch-SID_linux.i
Normal file
15
emulators/frodo/files/patch-SID_linux.i
Normal file
@ -0,0 +1,15 @@
|
||||
--- SID_linux.i.orig 2002-01-02 21:17:00.000000000 +0000
|
||||
+++ SID_linux.i 2004-11-27 15:54:36.000000000 +0000
|
||||
@@ -8,7 +8,12 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
-#include <linux/soundcard.h>
|
||||
+
|
||||
+#if defined(__linux__)
|
||||
+# include <linux/soundcard.h>
|
||||
+#elif defined(__FreeBSD__)
|
||||
+# include <machine/soundcard.h>
|
||||
+#endif
|
||||
|
||||
#include "VIC.h"
|
Loading…
Reference in New Issue
Block a user