pkgsrc/audio/splay/patches/patch-ae
minskim b7d409e6b0 Make this package build on Linux.
- Include endian.h instead of machine/endian.h on Linux.
  - Include sys/soundcard.h instead of soundcard.h on every platform.
2004-06-09 12:53:46 +00:00

21 lines
563 B
Text

$NetBSD: patch-ae,v 1.5 2004/06/09 12:53:46 minskim Exp $
--- mpegsound/mpegtoraw.cc.orig 1998-03-06 11:43:55.000000000 -0600
+++ mpegsound/mpegtoraw.cc
@@ -15,6 +15,7 @@
#include "mpegsound.h"
#include "mpegsound_locals.h"
+#include <sys/soundcard.h>
#define MY_PI 3.14159265358979323846
@@ -618,7 +619,7 @@ bool Mpegtoraw::run(int frames)
if(frames<0)
{
frames=-frames;
- player->setsoundtype(outputstereo,16,
+ player->setsoundtype(outputstereo,AFMT_S16_NE,
frequencies[version][frequency]>>downfrequency);
}