pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkgsrc: Update to 5.3
details: https://anonhg.NetBSD.org/pkgsrc/rev/9920bc3aa27c
branches: trunk
changeset: 306079:9920bc3aa27c
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Mon Apr 09 16:19:12 2018 +0000
description:
Update to 5.3
* Tarball does not contain ROM files anymore
* Use pulseaudio for audio output
Changelog:
New in fMSX 5.3
Added remaining time display during replay.
Stopping replay when emulation reset or state loaded.
Fixed replay rollover mechanism.
Added shadow underneath the time display.
Compiled fMSX-Unix with -Wall and eliminated warnings.
Replaced -DNO_WAVE_INTERPOLATION with -DWAVE_INTERPOLATION, off by default.
Removed old LoadSTA() and SaveSTA() code.
Finally deprecated -DNEW_STATES.
New in fMSX 5.2
Fixed DirectInput joysticks support in Speccy-Windows.
Made directional pads work on XBox gamepads.
New in fMSX 5.1
Added multiple monitor support to fMSX-Windows.
Fixed disappearing window in fMSX-Windows.
Fixed best full-screen mode detection in fMSX-Windows.
Fixed window flicker that appeared after recent Win10 updates.
Moved disk and cartridge options to "Hardware" menu in fMSX-Windows.
Switched fMSX-Linux to using PulseAudio sound.
Updated old PulseAudio driver for 64bit Linux.
New in fMSX 5.0
Switched to microseconds in the AY8910 PSG emulation.
Now updating, rendering, and playing sound every 8 scanlines.
The PLAY "S8M90O6G" MML test works now.
Added support for DirectInput joysticks to fMSX-Windows.
Fixed crash when changing audio sampling rate in fMSX-Windows.
New in fMSX 4.9
Moved input settings to the "Input" menu in fMSX-Windows.
Added "Draw 65% Frames" option to fMSX-Windows.
Fixed screen updates after changing scaling algorithm in fMSX-Windows.
Fixed "Force 4:3 Screen" option in TEXT80 screen mode.
Fixed "Load MSXDOS2 ROM" option in fMSX-Windows.
Fixed "Hit MIDI Drums" option in fMSX-Windows.
Now computing MIDI volume by waveform analysis.
Corrected MIDI drums volume in AY8910 emulation.
Fixed MIDI keyboard click in fMSX-Windows.
New in fMSX 4.8
Fixed loading of BASIC-only cartridges (Danger X4, Crazy Bullet, etc).
Added a hack to ignore bad writes to ASCII16 MegaROM mapper (Vaxol).
Added "Interpolate Video | Nearest Neighbor" option to fMSX-Windows.
fMSX-Windows will not overwrite last loaded file name with other names.
Added "Force 4:3 Screen" option to fMSX-Windows.
Added -4x3 command line option to fMSX-Unix.
Fixed file associations on Windows 8+.
Slightly rearranged Windows menus.
New in fMSX 4.7
Added Scale2X scaling algorithm.
Added Monochrome, Green, Amber, and Sepia CRT emulation.
Added -scale2x and -raster command line options.
Added -mono, -sepia, -green, and -amber command line options.
EMULib-specific command line options now processed inside EMULib.
Added "Scale2x Algorithm" and "LCD Raster" options on Windows.
Renamed "Color Raster" menu to "Color Filter" on Windows.
Deprecated -notv and -nolcd command line options.
New in fMSX 4.6
Enabled magnified sprites (Jawbreaker, Stray Cat, F-Zeru, Triumph).
Fixed sprite collision detection, especially in BASIC games.
Added collision detection even on transparent sprites.
Now stopping collision detection when Y=216 in SCREEN 4-8.
Now setting lower VDPStatus bits to the last tested sprite.
New in fMSX 4.5
Changed VDP VRAM access logic to comply with TMS9918 datasheet.
New in fMSX 4.4
Added special effects simulating individual pixel components.
Added EPX and EAGLE image scaling algorithms.
Merged scanline options into "Simulate Scanlines" in fMSX-Windows.
Merged scaling options into "Interpolate Video" in fMSX-Windows.
Added "Clear File Associations" option to fMSX-Windows.
Added "Play Sound When Inactive" option to fMSX-Windows.
Added "Apply Color Raster" submenu to fMSX-Windows.
Added -rgb and -cmy command line options.
Added -epx and -eagle command line options.
New in fMSX 4.3
Added instant replay function (press [F8]) that "rewinds" gameplay.
Switched to the new state saving code.
Built-in menu now available when pressing [F10].
Built-in debugger now available when pressing [CTRL]+[F10].
Fixed a memory corruption bug in the instant replay recorder.
Fixed instant replay not recording the first state.
New in fMSX 4.2
Added Cheat Hunter tool, press F8 and select "Search Cheats".
Removed waveform interpolation for more realistic sound.
Changed PSG noise to be more realistic.
Switched fMSX-Windows to Direct3D textures-based rendering.
Added -lcd and -nolcd command line options.
Added "Video | Stretch Full Screen" option to fMSX-Windows.
Added "Hardware | Debugger" option to fMSX-Windows.
Added "Help | MSX.ORG Site" option to fMSX-Windows.
Added "Help | MSX.ORG Forums" option to fMSX-Windows.
New in fMSX 4.0
Added custom palettes. To make a custom palette for Game.rom, create Game.pal containing 16 #RRGGBB values, one per line. This palette file will be loaded automatically.
Added cheat codes. To make cheat codes for Game.rom, create Game.cht containing codes in 00AAAAAA-DD and 00AAAAAA-DDDD formats, one per line. The cheat file will be loaded automatically.
AAAAAA is the ROM address and DD is the value to write there. For 16bit values, use DDDD.
To enable cheat codes, select "Hardware | Cheats" in fMSX-Windows, or press F8 and select "Cheats | Enable".
To edit cheat codes, press F8 and select "Cheats".
New in fMSX 3.9
Majorly improved AY8910 PSG emulation.
Added support for .MX1/.MX2 ROM files.
Set precise CPU, VDP, and PSG frequences.
Switched to table-based PSG envelopes.
Switched to logarithmic PSG volumes.
Fixed white noise frequency computation.
Adjusted noise to be 50% of the melodic volume.
Adjusted PSG envelopes length.
Fixed recognition of multiple file extensions.
New in fMSX 3.8
Added support for tape images, supplied in *.CAS files.
Implemented 5th/9th sprite fields in the VDP status register.
No longer clearing VRAM address latch when reading VDP status.
Added tape operations to the built-in menu.
Added "Simulate LCD Scanlines" menu option to fMSX-Windows.
Added "Load Tape Image" menu option to fMSX-Windows.
Added "Rewind Tape" menu option to fMSX-Windows.
Fixed "Documentation" menu option to fMSX-Windows.
New in fMSX 3.7
fMSX-Windows is now free!
Added accurate R register emulation, many protected boot loaders run now.
Added accurate LDIR/LDDR emulation, more protected boot loaders run now.
Added undocumented opcode 71h to the Z80 emulation.
Added more realistic "LD R,A" opcode to the Z80 emulation.
Added cartridge type lookup by its SHA1 checksum, as listed in the CARTS.SHA file.
Updated EMULib to a newer, more stable version.
Switched fMSX-Windows version to use Direct3D in full-screen mode.
Added proper Windows joystick support.
Now properly restoring full-screen mode in fMSX-Windows.
Fixed a bug in fMSX-Unix that corrupted memory on most platforms but, for some reason, not on Ubuntu Linux.
Added a separate Rules.Solaris make rules file. Include this file into your Makefile instead of Rules.Unix to compile for Solaris and don't forget about removing -DLSB_FIRST on SPARC hardware.
Fixed compilation warnings when compiling fMSX with CLANG.
diffstat:
emulators/fmsx/Makefile | 34 ++++++--------------------
emulators/fmsx/PLIST | 16 +-----------
emulators/fmsx/distinfo | 24 +++++++-----------
emulators/fmsx/patches/patch-EMULIB_FDIDisk.c | 27 ---------------------
emulators/fmsx/patches/patch-EMULIB_Floppy.c | 32 -------------------------
emulators/fmsx/patches/patch-EMULib_LibUnix.c | 30 -----------------------
emulators/fmsx/patches/patch-aa | 19 +++++++-------
emulators/fmsx/patches/patch-ab | 32 ++++++++++++------------
emulators/fmsx/patches/patch-ae | 13 ----------
emulators/fmsx/patches/patch-af | 20 +++++++++------
emulators/fmsx/patches/patch-ag | 19 +++++++-------
emulators/fmsx/patches/patch-ah | 12 ---------
emulators/fmsx/patches/patch-fMSX_MSX.c | 29 -----------------------
13 files changed, 65 insertions(+), 242 deletions(-)
diffs (truncated from 435 to 300 lines):
diff -r 963db447d902 -r 9920bc3aa27c emulators/fmsx/Makefile
--- a/emulators/fmsx/Makefile Mon Apr 09 15:36:59 2018 +0000
+++ b/emulators/fmsx/Makefile Mon Apr 09 16:19:12 2018 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2016/03/01 20:16:52 joerg Exp $
+# $NetBSD: Makefile,v 1.32 2018/04/09 16:19:12 ryoon Exp $
-DISTNAME= fMSX351
-PKGNAME= fmsx-3.5.1
-PKGREVISION= 1
+DISTNAME= fMSX53
+PKGNAME= fmsx-5.3
CATEGORIES= emulators x11
MASTER_SITES= http://fms.komkon.org/fMSX/
EXTRACT_SUFX= .zip
@@ -11,14 +10,14 @@
HOMEPAGE= http://fms.komkon.org/fMSX/
COMMENT= MSX (Z80-based computer) emulator
-RESTRICTED= ROM image copyright is questionable
+RESTRICTED= The binary based on modified source code is not redistributable
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
-NO_SRC_ON_CDROM= ${RESTRICTED}
-NO_SRC_ON_FTP= ${RESTRICTED}
WRKSRC= ${WRKDIR}
+USE_TOOLS+= gmake
+
BUILD_DIRS= fMSX/Unix
.include "../../mk/bsd.prefs.mk"
@@ -27,23 +26,7 @@
.if ${OPSYS} == "NetBSD"
DEFS+= -D_KERNTYPES
.endif
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
-USE_SUN_AUDIO?= YES
-.else
-USE_SUN_AUDIO?= NO
-.endif
-DEFS+= -DRomDir=\"${PREFIX:Q}/share/fmsx\"
-.if ${USE_SUN_AUDIO} == "YES"
-DEFS+= -DSUN_AUDIO
-.else
-. include "../../mk/oss.buildlink3.mk"
-SUBST_CLASSES+= devdsp
-SUBST_STAGE.devdsp= pre-build
-SUBST_FILES.devdsp= EMULib/SndUnix.c
-SUBST_SED.devdsp= -e 's|/dev/dsp|${DEVOSSSOUND}|g'
-
-.endif
.if ${MACHINE_ENDIAN} == "big"
DEFS+= -DMSB_FIRST
.elif ${MACHINE_ENDIAN} == "little"
@@ -54,15 +37,14 @@
MAKE_ENV+= DEFS=${DEFS:Q}
-INSTALLATION_DIRS= bin share/fmsx share/doc
+INSTALLATION_DIRS= bin share/doc
# Makefile of fMSX doesn't have install target.
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fMSX/Unix/fmsx ${DESTDIR}${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/fMSX/ROMs/*.ROM ${DESTDIR}${PREFIX}/share/fmsx
- ${INSTALL_DATA} ${WRKSRC}/fMSX/ROMs/*.FNT ${DESTDIR}${PREFIX}/share/fmsx
${INSTALL_DATA} ${WRKSRC}/fMSX/fMSX.html ${DESTDIR}${PREFIX}/share/doc
+.include "../../audio/pulseaudio/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
diff -r 963db447d902 -r 9920bc3aa27c emulators/fmsx/PLIST
--- a/emulators/fmsx/PLIST Mon Apr 09 15:36:59 2018 +0000
+++ b/emulators/fmsx/PLIST Mon Apr 09 16:19:12 2018 +0000
@@ -1,17 +1,3 @@
-@comment $NetBSD: PLIST,v 1.3 2010/01/07 08:38:43 obache Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/04/09 16:19:12 ryoon Exp $
bin/fmsx
share/doc/fMSX.html
-share/fmsx/CYRILLIC.FNT
-share/fmsx/DISK.ROM
-share/fmsx/FMPAC.ROM
-share/fmsx/FMPAC16.ROM
-share/fmsx/ITALIC.FNT
-share/fmsx/KANJI.ROM
-share/fmsx/MSX.ROM
-share/fmsx/MSX2.ROM
-share/fmsx/MSX2EXT.ROM
-share/fmsx/MSX2P.ROM
-share/fmsx/MSX2PEXT.ROM
-share/fmsx/MSXDOS2.ROM
-share/fmsx/PAINTER.ROM
-share/fmsx/RS232.ROM
diff -r 963db447d902 -r 9920bc3aa27c emulators/fmsx/distinfo
--- a/emulators/fmsx/distinfo Mon Apr 09 15:36:59 2018 +0000
+++ b/emulators/fmsx/distinfo Mon Apr 09 16:19:12 2018 +0000
@@ -1,16 +1,10 @@
-$NetBSD: distinfo,v 1.9 2017/03/23 17:06:49 joerg Exp $
+$NetBSD: distinfo,v 1.10 2018/04/09 16:19:12 ryoon Exp $
-SHA1 (fMSX351.zip) = d28d2bf3bc2a1ae273899c80bbbe9bdf4dd98767
-RMD160 (fMSX351.zip) = be16d466f5ff29265d0faebd186a701a96ba81f6
-SHA512 (fMSX351.zip) = 7d994523ca825ce29cbcf232e1c6dcbef8d0e95031be0ca9d73b886d315af13b152055ff065a8e1baedb9a466d0a51c4b21c76b85dc9146e443f581ce6470555
-Size (fMSX351.zip) = 515112 bytes
-SHA1 (patch-EMULIB_FDIDisk.c) = d74b7d5d1217297cfa54a1085f85ae4a3db9b635
-SHA1 (patch-EMULIB_Floppy.c) = 4b8874cac9c58839bbb107bf8cb8c59915873cac
-SHA1 (patch-EMULib_LibUnix.c) = b598795252f20992499ed72986e124592ef9470f
-SHA1 (patch-aa) = 80191e7d1ff6b36cc1cf97174162e179d743b149
-SHA1 (patch-ab) = 7bff0051685efd22e678c66ffa4075830143e6d6
-SHA1 (patch-ae) = 7168f963dac8686200119b297af3bcf8f8203c4c
-SHA1 (patch-af) = df2dd22ae51558497e1691a13cfaf4556562f483
-SHA1 (patch-ag) = 2a1f29485ffe0d51eeaf093de434e9a49a4b8f48
-SHA1 (patch-ah) = eb44189e26a485b9bc50462127b7b74b8d161734
-SHA1 (patch-fMSX_MSX.c) = ac35bfcad37954234d60a61c28208d5c9b77089b
+SHA1 (fMSX53.zip) = c7b49a4b819f6976af963fe5e08e88d4228c4833
+RMD160 (fMSX53.zip) = f7b2f497efef3d5d1df2ab680ba8547a7eb15c85
+SHA512 (fMSX53.zip) = 2bffea62a3def432ac375e1cafd628f225201f2f0a25a4da920a2c39ef554a979563813eb855905468007a84b9559fa53309d9b4aaf3983d5e2443a7a1a34c19
+Size (fMSX53.zip) = 261422 bytes
+SHA1 (patch-aa) = 10ab1e2fee67260f0989f37b183ca8fa87bc8eab
+SHA1 (patch-ab) = 6a5a0b8854747c085cd48ef54d92e7934ecdfa33
+SHA1 (patch-af) = ef4579c245fcf515c7f38bc8174634cc5e02c283
+SHA1 (patch-ag) = 8775adce25593f11941a4c43584b384f43d47150
diff -r 963db447d902 -r 9920bc3aa27c emulators/fmsx/patches/patch-EMULIB_FDIDisk.c
--- a/emulators/fmsx/patches/patch-EMULIB_FDIDisk.c Mon Apr 09 15:36:59 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-$NetBSD: patch-EMULIB_FDIDisk.c,v 1.1 2012/07/18 23:23:21 marino Exp $
-
-Make compatible with libz >= 1.2.6
-
---- EMULib/FDIDisk.c.orig 2007-12-30 15:59:36.000000000 +0000
-+++ EMULib/FDIDisk.c
-@@ -178,13 +178,13 @@ byte *NewFDI(FDIDisk *D,int Sides,int Tr
- }
-
- #ifdef ZLIB
--#define fopen gzopen
--#define fclose gzclose
--#define fread(B,L,N,F) gzread(F,B,(L)*(N))
--#define fwrite(B,L,N,F) gzwrite(F,B,(L)*(N))
--#define fseek gzseek
--#define rewind gzrewind
--#define ftell gztell
-+#define fopen(F,M) gzopen(F,M)
-+#define fclose(F) gzclose((gzFile)F)
-+#define fread(B,L,N,F) gzread((gzFile)F,B,(L)*(N))
-+#define fwrite(B,L,N,F) gzwrite((gzFile)F,B,(L)*(N))
-+#define fseek(F,L,W) gzseek((gzFile)F,L,W)
-+#define rewind(F) gzrewind((gzFile)F)
-+#define ftell(F) gztell((gzFile)F)
- #endif
-
- /** LoadFDI() ************************************************/
diff -r 963db447d902 -r 9920bc3aa27c emulators/fmsx/patches/patch-EMULIB_Floppy.c
--- a/emulators/fmsx/patches/patch-EMULIB_Floppy.c Mon Apr 09 15:36:59 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-EMULIB_Floppy.c,v 1.1 2012/07/18 23:23:21 marino Exp $
-
-Make compatible with libz >= 1.2.6
-
---- EMULib/Floppy.c.orig 2007-12-30 15:59:58.000000000 +0000
-+++ EMULib/Floppy.c
-@@ -436,9 +436,9 @@ byte *DSKLoad(const char *Name,byte *Dsk
- }
-
- #ifdef ZLIB
--#define fopen gzopen
--#define fclose gzclose
--#define fread(B,L,N,F) gzread(F,B,(L)*(N))
-+#define fopen(F,M) gzopen(F,M)
-+#define fclose(F) gzclose((gzFile)F)
-+#define fread(B,L,N,F) gzread((gzFile)F,B,(L)*(N))
- #endif
-
- /* Assume <Name> to be a disk image file */
-@@ -504,9 +504,9 @@ const byte *DSKSave(const char *Name,con
- }
-
- #ifdef ZLIB
--#define fopen gzopen
--#define fclose gzclose
--#define fwrite(B,L,N,F) gzwrite(F,(byte *)B,(L)*(N))
-+#define fopen(F,M) gzopen(F,M)
-+#define fclose(F) gzclose((gzFile)F)
-+#define fwrite(B,L,N,F) gzwrite((gzFile)F,(byte *)B,(L)*(N))
- #endif
-
- /* Assume <Name> to be a disk image file */
diff -r 963db447d902 -r 9920bc3aa27c emulators/fmsx/patches/patch-EMULib_LibUnix.c
--- a/emulators/fmsx/patches/patch-EMULib_LibUnix.c Mon Apr 09 15:36:59 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-$NetBSD: patch-EMULib_LibUnix.c,v 1.1 2012/12/20 21:57:52 joerg Exp $
-
---- EMULib/LibUnix.c.orig 2012-12-20 12:25:35.000000000 +0000
-+++ EMULib/LibUnix.c
-@@ -12,6 +12,8 @@
- /*************************************************************/
- #include "EMULib.h"
-
-+#include <unistd.h>
-+#include <ctype.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
-@@ -142,7 +144,7 @@ int ShowVideo(void)
- else
- #endif
- XPutImage(Dsp,Wnd,DefaultGCOfScreen(Scr),VideoImg->XImg,VideoX,VideoY,(XSize-VideoW)>>1,(YSize-VideoH)>>1,VideoW,VideoH);
-- return;
-+ return 0;
- }
-
- /* Scale video buffer into OutImg */
-@@ -159,6 +161,7 @@ int ShowVideo(void)
- else
- #endif
- XPutImage(Dsp,Wnd,DefaultGCOfScreen(Scr),OutImg.XImg,0,0,0,0,XSize,YSize);
-+ return 0;
- }
-
- /** GetJoystick() ********************************************/
diff -r 963db447d902 -r 9920bc3aa27c emulators/fmsx/patches/patch-aa
--- a/emulators/fmsx/patches/patch-aa Mon Apr 09 15:36:59 2018 +0000
+++ b/emulators/fmsx/patches/patch-aa Mon Apr 09 16:19:12 2018 +0000
@@ -1,16 +1,17 @@
-$NetBSD: patch-aa,v 1.5 2010/01/07 08:38:43 obache Exp $
+$NetBSD: patch-aa,v 1.6 2018/04/09 16:19:12 ryoon Exp $
---- fMSX/Unix/Makefile.orig 2008-01-28 19:29:59.000000000 +0000
+--- fMSX/Unix/Makefile.orig 2018-03-24 09:31:06.000000000 +0000
+++ fMSX/Unix/Makefile
-@@ -1,6 +1,6 @@
- include ../../EMULib/Rules.Unix
+@@ -2,7 +2,7 @@ include ../../EMULib/Rules.Unix
--DEFINES+= -DFMSX -DLSB_FIRST -DBPP16 -DCONDEBUG -DDEBUG
-+DEFINES+= -DFMSX -DBPP16 -DCONDEBUG -DDEBUG $(DEFS)
- CFLAGS += -I$(LIBZ80)
- OBJECTS+= $(EMUUNIX) $(FLOPPY) $(FDIDISK) \
+ # Depending on your CPU endianess, use either -DLSB_FIRST or -DMSB_FIRST.
+ # Depending on your X11 display mode, use -DBPP8, -DBPP16, or -DBPP32.
+-DEFINES+= -DFMSX -DLSB_FIRST -DCONDEBUG -DDEBUG
++DEFINES+= -DFMSX -DCONDEBUG -DDEBUG $(DEFS)
+ CFLAGS += -Wall -I$(LIBZ80)
+ OBJECTS+= $(SHA1) $(FLOPPY) $(FDIDISK) $(MCF) $(HUNT) \
$(Z80) $(I8255) $(YM2413) $(AY8910) $(SCC) $(WD1793) \
-@@ -10,7 +10,7 @@ OBJECTS+= $(EMUUNIX) $(FLOPPY) $(FDIDISK
+@@ -12,7 +12,7 @@ OBJECTS+= $(SHA1) $(FLOPPY) $(FDIDISK) $
all: fmsx
fmsx: Makefile $(OBJECTS)
diff -r 963db447d902 -r 9920bc3aa27c emulators/fmsx/patches/patch-ab
--- a/emulators/fmsx/patches/patch-ab Mon Apr 09 15:36:59 2018 +0000
+++ b/emulators/fmsx/patches/patch-ab Mon Apr 09 16:19:12 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.5 2010/01/07 08:38:43 obache Exp $
+$NetBSD: patch-ab,v 1.6 2018/04/09 16:19:12 ryoon Exp $
---- EMULib/SndUnix.c.orig 2007-12-30 16:01:34.000000000 +0000
-+++ EMULib/SndUnix.c
-@@ -30,7 +30,9 @@
+--- EMULib/Unix/SndUnix.c.orig 2018-03-24 08:47:36.000000000 +0000
++++ EMULib/Unix/SndUnix.c
+@@ -38,7 +38,9 @@
#include <sys/audioio.h>
#include <sys/conf.h>
@@ -10,9 +10,9 @@
#include <stropts.h>
+#endif
- #define AUDIO_CONV(A) (ULAW[0xFF&(128+(A))])
-
-@@ -84,6 +86,10 @@ static const unsigned char ULAW[256] =
+ static const unsigned char ULAW[256] =
+ {
+@@ -82,6 +84,10 @@ static const unsigned char ULAW[256] =
#include <sys/soundcard.h>
#endif
@@ -20,15 +20,15 @@
+#include <sys/soundcard.h>
+#endif
+
- #define AUDIO_CONV(A) (128+(A))
-
- #endif /* !SUN_AUDIO */
-@@ -224,7 +230,7 @@ void TrashAudio(void)
- if(SoundFD>=0)
- {
- #ifndef SUN_AUDIO
+ #ifdef __NetBSD__
+ #include <soundcard.h>
+ #endif
Home |
Main Index |
Thread Index |
Old Index