From 8eff868e1f6c667c26e67514386f0c858740cea9 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Sun, 24 Jan 1999 08:14:53 +0000 Subject: The audio/xamp port currently installs an xamp binary with balance and volume controls that do nothing. This is because BSD audio support seems to have been added to the software as an afterthought. PR: ports/9472 Submitted by: Sheldon Hearn --- audio/xamp/files/patch-aa | 49 +++++++++++++++++++++++++++++++++++++++++++++++ audio/xamp/files/patch-ab | 13 ++----------- 2 files changed, 51 insertions(+), 11 deletions(-) (limited to 'audio') diff --git a/audio/xamp/files/patch-aa b/audio/xamp/files/patch-aa index 696f55557556..71fe54545ac4 100644 --- a/audio/xamp/files/patch-aa +++ b/audio/xamp/files/patch-aa @@ -12,3 +12,52 @@ #include #include #include +@@ -84,11 +84,11 @@ + splash->show(); + + // init mixer +-#ifdef OS_Linux ++#if defined(OS_Linux) || defined(OS_BSD) + if ((mixer = open("/dev/mixer", O_RDWR)) < 0) + die("Error opening /dev/mixer, exiting\n"); + ioctl(mixer, SOUND_MIXER_READ_PCM, &v); +-#endif OS_Linux ++#endif + + /* where mine resource file is located */ + char home[500]; +@@ -262,7 +262,7 @@ + + QtAMP::~QtAMP() + { +-#ifdef OS_Linux ++#if defined(OS_Linux) || defined(OS_BSD) + close(mixer); + #endif + real_quit(); +@@ -348,7 +348,7 @@ + sprintf(volum,"Volume: %d",vr); + playLabel->setText( volum ); + // printf("%d %d\n",tvr,tv); +-#ifdef OS_Linux ++#if defined(OS_Linux) || defined(OS_BSD) + int x = (tv*256 + tvl); + ioctl(mixer, SOUND_MIXER_WRITE_PCM, &x); + #endif +@@ -884,14 +884,14 @@ + { + if (mute == 1) + { +-#ifdef OS_Linux ++#if defined(OS_Linux) || defined(OS_BSD) + int x = (tv*256 + tvl); + ioctl(mixer, SOUND_MIXER_WRITE_PCM, &x); + #endif + } + if (mute == 0) + { +-#ifdef OS_Linux ++#if defined(OS_Linux) || defined(OS_BSD) + int x = (7*256 + 7); + ioctl(mixer, SOUND_MIXER_WRITE_PCM, &x); + #endif diff --git a/audio/xamp/files/patch-ab b/audio/xamp/files/patch-ab index cb704afa7b7d..8513fb1cab58 100644 --- a/audio/xamp/files/patch-ab +++ b/audio/xamp/files/patch-ab @@ -1,5 +1,5 @@ ---- configure Mon Oct 27 00:55:34 1997 -+++ configure Wed Jul 29 22:30:53 1998 +--- configure.orig Mon Oct 27 00:55:34 1997 ++++ configure Sun Jan 24 15:54:23 1999 @@ -992,9 +992,9 @@ qt_libdir=NO for i in $qt_libdirs; @@ -12,12 +12,3 @@ qt_libdir=$i break 2 fi -@@ -1711,7 +1711,7 @@ - if test "$OS_TYPE" = "FreeBSD" ; then - OS_TYPE="BSD" - fi -- CFLAGS="-O6 -ffast-math -fomit-frame-pointer -DNO_BYTE_SWAPPING ${CFLAGS_ARCH}" -+ CFLAGS="-O2 -m486 -pipe -ffast-math -fomit-frame-pointer -DNO_BYTE_SWAPPING ${CFLAGS_ARCH}" - ;; - - SunOS) -- cgit v1.2.3