pkgsrc/audio/maplay/patches/patch-ad
agc 5c5fe9fed1 Fix a compilation problem on 1.6 and above.
Split patch files out into one file per patch-file.
2002-06-27 15:52:11 +00:00

33 lines
1 KiB
Text

$NetBSD: patch-ad,v 1.4 2002/06/27 15:52:14 agc Exp $
--- header.cc 2002/06/27 15:41:04 1.1
+++ header.cc 2002/06/27 15:44:28
@@ -36,7 +36,7 @@
const uint32 Header::frequencies[3] = { 44100, 48000, 32000 };
-bool Header::read_header (Ibitstream *stream, Crc16 **crcp)
+boolean Header::read_header (Ibitstream *stream, Crc16 **crcp)
{
uint32 headerstring;
@@ -48,8 +48,8 @@
cerr << "invalid syncword 0x";
cerr.width (8);
cerr.fill ('0');
- cerr << hex << headerstring
- << " found at fileoffset " << dec
+ cerr << headerstring
+ << " found at fileoffset "
<< lseek (stream->filedescriptor (), 0, SEEK_CUR) - 4 << '\n';
return False;
}
@@ -161,7 +161,7 @@
static const int32 bitrates_layer_2[15] = {
0 /*free format*/, 32000, 48000, 56000, 64000, 80000, 96000,
112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000 };
- static const samplefrequencies[3] = { 44100, 48000, 32000 };
+ static const int32 samplefrequencies[3] = { 44100, 48000, 32000 };
uint32 framesize;
if (h_layer == 1)