summaryrefslogtreecommitdiff
path: root/audio/maplay/patches/patch-ad
blob: 347b3bd8269e3d7ec4a4b1854a64e29aad9a8161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$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)