summaryrefslogtreecommitdiff
path: root/audio/maplay/patches/patch-aa
blob: 124dd1fb087a6abecd14841bb86669ff1371ff73 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
$NetBSD: patch-aa,v 1.2 1998/08/07 10:35:56 agc Exp $

Only in maplay.new: .extract_done
diff -c -r maplay/all.h maplay.new/all.h
*** maplay/all.h	Thu Jun 23 12:14:39 1994
--- maplay.new/all.h	Tue Feb 14 07:50:56 1995
***************
*** 22,28 ****
  #define ALL_H
  
  typedef float		real;		// float should be enough
! typedef short		bool;
  typedef unsigned	uint32;		// 32 Bit unsigned integer
  	// some compilers may need "typedef unsigned long uint32" instead
  typedef int		int32;		// 32 Bit signed integer
--- 22,28 ----
  #define ALL_H
  
  typedef float		real;		// float should be enough
! typedef short		boolean;
  typedef unsigned	uint32;		// 32 Bit unsigned integer
  	// some compilers may need "typedef unsigned long uint32" instead
  typedef int		int32;		// 32 Bit signed integer
diff -c -r maplay/configuration.sh maplay.new/configuration.sh
*** maplay/configuration.sh	Thu Jun 23 12:14:46 1994
--- maplay.new/configuration.sh	Tue Feb 14 07:46:52 1995
***************
*** 72,77 ****
--- 72,83 ----
       INCLUDEDIRS=
       LIBRARIES=
       AUDIO_INCLUDES='#include <sys/audioio.h>' ;;
+   FreeBSD*)
+      COMPILER=g++
+      COMPILERFLAGS='-O2 -m486 -DLINUX -DDAMN_INTEL_BYTE_ORDER'
+      INCLUDEDIRS=
+      LIBRARIES= 
+      AUDIO_INCLUDES='#include <machine/soundcard.h>' ;;
    Linux*)
       COMPILER=g++
       COMPILERFLAGS='-O2 -m486 -funroll-loops -DLINUX -DDAMN_INTEL_BYTE_ORDER'
diff -c -r maplay/header.cc maplay.new/header.cc
*** maplay/header.cc	Thu Jun 23 12:14:35 1994
--- maplay.new/header.cc	Tue Feb 14 07:52:56 1995
***************
*** 36,42 ****
  const uint32 Header::frequencies[3] = { 44100, 48000, 32000 };
  
  
! bool Header::read_header (Ibitstream *stream, Crc16 **crcp)
  {
    uint32 headerstring;
  
--- 36,42 ----
  const uint32 Header::frequencies[3] = { 44100, 48000, 32000 };
  
  
! boolean Header::read_header (Ibitstream *stream, Crc16 **crcp)
  {
    uint32 headerstring;
  
diff -c -r maplay/header.h maplay.new/header.h
*** maplay/header.h	Thu Jun 23 12:14:40 1994
--- maplay.new/header.h	Tue Feb 14 07:52:57 1995
***************
*** 39,45 ****
    e_mode		h_mode;
    e_sample_frequency	h_sample_frequency;
    uint32		h_number_of_subbands, h_intensity_stereo_bound;
!   bool			h_copyright, h_original;
    Crc16			*crc;
    uint16		checksum;
  
--- 39,45 ----
    e_mode		h_mode;
    e_sample_frequency	h_sample_frequency;
    uint32		h_number_of_subbands, h_intensity_stereo_bound;
!   boolean			h_copyright, h_original;
    Crc16			*crc;
    uint16		checksum;
  
***************
*** 48,54 ****
  public:
  			Header (void) { crc = (Crc16 *)0; }
  		       ~Header (void) { if (crc) delete crc; }
!   bool			read_header (Ibitstream *, Crc16 **);
  			// read a 32-bit header from the bitstream
  
    // functions to query header contents:
--- 48,54 ----
  public:
  			Header (void) { crc = (Crc16 *)0; }
  		       ~Header (void) { if (crc) delete crc; }
!   boolean			read_header (Ibitstream *, Crc16 **);
  			// read a 32-bit header from the bitstream
  
    // functions to query header contents:
***************
*** 58,68 ****
    uint32		frequency (void) { return frequencies[h_sample_frequency]; }
    static uint32	frequency (e_sample_frequency rate) { return frequencies[rate]; }
    e_mode		mode (void) { return h_mode; };
!   bool			checksums (void) { return !h_protection_bit; }
!   bool			copyright (void) { return h_copyright; }
!   bool			original (void) { return h_original; }
  
!   bool			checksum_ok (void) { return checksum == crc->checksum (); }
  			// compares computed checksum with stream checksum
  
    // functions which return header informations as strings:
--- 58,68 ----
    uint32		frequency (void) { return frequencies[h_sample_frequency]; }
    static uint32	frequency (e_sample_frequency rate) { return frequencies[rate]; }
    e_mode		mode (void) { return h_mode; };
!   boolean			checksums (void) { return !h_protection_bit; }
!   boolean			copyright (void) { return h_copyright; }
!   boolean			original (void) { return h_original; }
  
!   boolean			checksum_ok (void) { return checksum == crc->checksum (); }
  			// compares computed checksum with stream checksum
  
    // functions which return header informations as strings:
diff -c -r maplay/ibitstream.cc maplay.new/ibitstream.cc
*** maplay/ibitstream.cc	Thu Jun 23 12:14:35 1994
--- maplay.new/ibitstream.cc	Tue Feb 14 07:52:56 1995
***************
*** 64,70 ****
  }
  
  
! bool Ibitstream::get_header (uint32 *headerstring)
  {
    int readvalue;
  
--- 64,70 ----
  }
  
  
! boolean Ibitstream::get_header (uint32 *headerstring)
  {
    int readvalue;
  
***************
*** 102,108 ****
  }
  
  
! bool Ibitstream::read_frame (uint32 bytesize)
  {
    int readvalue;
  
--- 102,108 ----
  }
  
  
! boolean Ibitstream::read_frame (uint32 bytesize)
  {
    int readvalue;
  
diff -c -r maplay/ibitstream.h maplay.new/ibitstream.h
*** maplay/ibitstream.h	Thu Jun 23 12:14:40 1994
--- maplay.new/ibitstream.h	Tue Feb 14 07:52:58 1995
***************
*** 43,52 ****
  		~Ibitstream (void);
    int		filedescriptor (void) { return fd; };
  
!   bool		get_header (uint32 *);
  		// get next 32 bits from bitstream in an unsigned int,
  		// returned value False => end of stream
!   bool		read_frame (uint32 bytesize);
  		// fill buffer with data from bitstream, returned value False => end of stream
    uint32	get_bits (uint32 number_of_bits);
  		// read bits (1 <= number_of_bits <= 16) from buffer into the lower bits
--- 43,52 ----
  		~Ibitstream (void);
    int		filedescriptor (void) { return fd; };
  
!   boolean		get_header (uint32 *);
  		// get next 32 bits from bitstream in an unsigned int,
  		// returned value False => end of stream
!   boolean		read_frame (uint32 bytesize);
  		// fill buffer with data from bitstream, returned value False => end of stream
    uint32	get_bits (uint32 number_of_bits);
  		// read bits (1 <= number_of_bits <= 16) from buffer into the lower bits
diff -c -r maplay/maplay.cc maplay.new/maplay.cc
*** maplay/maplay.cc	Thu Jun 23 12:14:36 1994
--- maplay.new/maplay.cc	Tue Feb 14 07:52:57 1995
***************
*** 54,67 ****
  
  // data extracted from commandline arguments:
  static char *filename;
! static bool verbose_mode = False, filter_check = False;
! static bool stdout_mode = False;
  static enum e_channels which_channels = both;
! static bool use_speaker = False, use_headphone = False, use_line_out = False;
  #ifdef ULAW
! static bool force_amd = False;
  #endif
! static bool use_own_scalefactor = False;
  static real scalefactor;
  
  // data extracted from header of first frame:
--- 54,67 ----
  
  // data extracted from commandline arguments:
  static char *filename;
! static boolean verbose_mode = False, filter_check = False;
! static boolean stdout_mode = False;
  static enum e_channels which_channels = both;
! static boolean use_speaker = False, use_headphone = False, use_line_out = False;
  #ifdef ULAW
! static boolean force_amd = False;
  #endif
! static boolean use_own_scalefactor = False;
  static real scalefactor;
  
  // data extracted from header of first frame:
***************
*** 93,99 ****
  main (int argc, char *argv[])
  {
    int i;
!   bool read_ready = False, write_ready = False;
  
    if (argc < 2 || !strncmp (argv[1], "-h", 2))
    {
--- 93,99 ----
  main (int argc, char *argv[])
  {
    int i;
!   boolean read_ready = False, write_ready = False;
  
    if (argc < 2 || !strncmp (argv[1], "-h", 2))
    {
***************
*** 146,151 ****
--- 146,154 ----
  #ifdef Solaris
  	    "SPARC Solaris 2.x"
  #else
+ #ifdef __FreeBSD__
+ 	    "FreeBSD"
+ #else
  #ifdef LINUX
  	    "Linux"
  #else
***************
*** 153,158 ****
--- 156,162 ----
  	    "RISC ULTRIX 4.x"
  #else
  	    "unknown"
+ #endif
  #endif
  #endif
  #endif
diff -c -r maplay/obuffer.cc maplay.new/obuffer.cc
*** maplay/obuffer.cc	Thu Jun 23 12:14:36 1994
--- maplay.new/obuffer.cc	Tue Feb 14 07:52:57 1995
***************
*** 217,226 ****
  int SparcObuffer::audio_fd = -1;
  
  #ifdef ULAW
! SparcObuffer::SparcObuffer (Header *header, bool use_speaker, bool use_headphone, bool use_line_out)
  #else
  SparcObuffer::SparcObuffer (uint32 number_of_channels, Header *header,
! 			    bool use_speaker, bool use_headphone, bool use_line_out)
  #endif
  {
  #ifndef ULAW
--- 217,226 ----
  int SparcObuffer::audio_fd = -1;
  
  #ifdef ULAW
! SparcObuffer::SparcObuffer (Header *header, boolean use_speaker, boolean use_headphone, boolean use_line_out)
  #else
  SparcObuffer::SparcObuffer (uint32 number_of_channels, Header *header,
! 			    boolean use_speaker, boolean use_headphone, boolean use_line_out)
  #endif
  {
  #ifndef ULAW
***************
*** 406,414 ****
  
  
  #ifdef ULAW
! bool SparcObuffer::class_suitable (uint32 number_of_channels, bool force_amd)
  #else
! bool SparcObuffer::class_suitable (void)
  #endif
  {
  #ifdef ULAW
--- 406,414 ----
  
  
  #ifdef ULAW
! boolean SparcObuffer::class_suitable (uint32 number_of_channels, boolean force_amd)
  #else
! boolean SparcObuffer::class_suitable (void)
  #endif
  {
  #ifdef ULAW
***************
*** 629,635 ****
  }
  
  
! bool LinuxObuffer::class_suitable (uint32 number_of_channels)
  {
    // open the dsp audio device:
    audio_fd = open_audio_device ();
--- 629,635 ----
  }
  
  
! boolean LinuxObuffer::class_suitable (uint32 number_of_channels)
  {
    // open the dsp audio device:
    audio_fd = open_audio_device ();
diff -c -r maplay/obuffer.h maplay.new/obuffer.h
*** maplay/obuffer.h	Thu Jun 23 12:14:40 1994
--- maplay.new/obuffer.h	Tue Feb 14 07:52:58 1995
***************
*** 123,142 ****
  
  public:
  #ifdef ULAW
! 	SparcObuffer (Header *, bool use_speaker, bool use_headphone, bool use_line_out);
  #else
  	SparcObuffer (uint32 number_of_channels, Header *,
!  		      bool use_speaker, bool use_headphone, bool use_line_out);
  #endif
         ~SparcObuffer (void);
    void	append (uint32 channel, int16 value);
    void	write_buffer (int dummy);
  
  #ifdef ULAW
!   static bool class_suitable (uint32 number_of_channels, bool force_amd);
  	// returnvalue == False: no u-law output possible (class unsuitable)
  #else
!   static bool class_suitable (void);
  	// returnvalue == False: no 16-bit output possible (class unsuitable)
  #endif
  };
--- 123,142 ----
  
  public:
  #ifdef ULAW
! 	SparcObuffer (Header *, boolean use_speaker, boolean use_headphone, boolean use_line_out);
  #else
  	SparcObuffer (uint32 number_of_channels, Header *,
!  		      boolean use_speaker, boolean use_headphone, boolean use_line_out);
  #endif
         ~SparcObuffer (void);
    void	append (uint32 channel, int16 value);
    void	write_buffer (int dummy);
  
  #ifdef ULAW
!   static boolean class_suitable (uint32 number_of_channels, boolean force_amd);
  	// returnvalue == False: no u-law output possible (class unsuitable)
  #else
!   static boolean class_suitable (void);
  	// returnvalue == False: no 16-bit output possible (class unsuitable)
  #endif
  };
***************
*** 159,165 ****
    void	append (uint32 channel, int16 value);
    void	write_buffer (int dummy);
  
!   static bool class_suitable (uint32 number_of_channels);
  };
  #endif	// LINUX
  
--- 159,165 ----
    void	append (uint32 channel, int16 value);
    void	write_buffer (int dummy);
  
!   static boolean class_suitable (uint32 number_of_channels);
  };
  #endif	// LINUX
  
diff -c -r maplay/subband.h maplay.new/subband.h
*** maplay/subband.h	Thu Jun 23 12:14:40 1994
--- maplay.new/subband.h	Tue Feb 14 07:52:58 1995
***************
*** 35,42 ****
  public:
    virtual void read_allocation (Ibitstream *, Header *, Crc16 *) = 0;
    virtual void read_scalefactor (Ibitstream *, Header *) = 0;
!   virtual bool read_sampledata (Ibitstream *) = 0;
!   virtual bool put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *) = 0;
  };
  
  #endif
--- 35,42 ----
  public:
    virtual void read_allocation (Ibitstream *, Header *, Crc16 *) = 0;
    virtual void read_scalefactor (Ibitstream *, Header *) = 0;
!   virtual boolean read_sampledata (Ibitstream *) = 0;
!   virtual boolean put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *) = 0;
  };
  
  #endif
diff -c -r maplay/subband_layer_1.cc maplay.new/subband_layer_1.cc
*** maplay/subband_layer_1.cc	Thu Jun 23 12:14:36 1994
--- maplay.new/subband_layer_1.cc	Tue Feb 14 07:52:57 1995
***************
*** 86,92 ****
  }
  
  
! bool SubbandLayer1::read_sampledata (Ibitstream *stream)
  {
    if (allocation)
    {
--- 86,92 ----
  }
  
  
! boolean SubbandLayer1::read_sampledata (Ibitstream *stream)
  {
    if (allocation)
    {
***************
*** 105,111 ****
  }
  
  
! bool SubbandLayer1::put_next_sample (e_channels channels,
  				     SynthesisFilter *filter1, SynthesisFilter *)
  {
    if (allocation && channels != right)
--- 105,111 ----
  }
  
  
! boolean SubbandLayer1::put_next_sample (e_channels channels,
  				     SynthesisFilter *filter1, SynthesisFilter *)
  {
    if (allocation && channels != right)
***************
*** 142,148 ****
  }
  
  
! bool SubbandLayer1IntensityStereo::put_next_sample (e_channels channels,
  	SynthesisFilter *filter1, SynthesisFilter *filter2)
  {
    if (allocation)
--- 142,148 ----
  }
  
  
! boolean SubbandLayer1IntensityStereo::put_next_sample (e_channels channels,
  	SynthesisFilter *filter1, SynthesisFilter *filter2)
  {
    if (allocation)
***************
*** 231,239 ****
  }
  
  
! bool SubbandLayer1Stereo::read_sampledata (Ibitstream *stream)
  {
!   bool returnvalue = SubbandLayer1::read_sampledata (stream);
    if (channel2_allocation)
    {
      channel2_sample = real (stream->get_bits (channel2_samplelength));
--- 231,239 ----
  }
  
  
! boolean SubbandLayer1Stereo::read_sampledata (Ibitstream *stream)
  {
!   boolean returnvalue = SubbandLayer1::read_sampledata (stream);
    if (channel2_allocation)
    {
      channel2_sample = real (stream->get_bits (channel2_samplelength));
***************
*** 246,252 ****
  }
  
  
! bool SubbandLayer1Stereo::put_next_sample (e_channels channels,
  					   SynthesisFilter *filter1, SynthesisFilter *filter2)
  {
    SubbandLayer1::put_next_sample (channels, filter1, filter2);
--- 246,252 ----
  }
  
  
! boolean SubbandLayer1Stereo::put_next_sample (e_channels channels,
  					   SynthesisFilter *filter1, SynthesisFilter *filter2)
  {
    SubbandLayer1::put_next_sample (channels, filter1, filter2);
diff -c -r maplay/subband_layer_1.h maplay.new/subband_layer_1.h
*** maplay/subband_layer_1.h	Thu Jun 23 12:14:40 1994
--- maplay.new/subband_layer_1.h	Tue Feb 14 07:52:58 1995
***************
*** 42,49 ****
         SubbandLayer1 (uint32 subbandnumber);
    void read_allocation (Ibitstream *, Header *, Crc16 *);
    void read_scalefactor (Ibitstream *, Header *);
!   bool read_sampledata (Ibitstream *);
!   bool put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  
--- 42,49 ----
         SubbandLayer1 (uint32 subbandnumber);
    void read_allocation (Ibitstream *, Header *, Crc16 *);
    void read_scalefactor (Ibitstream *, Header *);
!   boolean read_sampledata (Ibitstream *);
!   boolean put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  
***************
*** 60,70 ****
      SubbandLayer1::read_allocation (stream, header, crc);
    }
    void read_scalefactor (Ibitstream *, Header *);
!   bool read_sampledata (Ibitstream *stream)
    {
      return SubbandLayer1::read_sampledata (stream);
    }
!   bool put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  
--- 60,70 ----
      SubbandLayer1::read_allocation (stream, header, crc);
    }
    void read_scalefactor (Ibitstream *, Header *);
!   boolean read_sampledata (Ibitstream *stream)
    {
      return SubbandLayer1::read_sampledata (stream);
    }
!   boolean put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  
***************
*** 82,89 ****
         SubbandLayer1Stereo (uint32 subbandnumber);
    void read_allocation (Ibitstream *, Header *, Crc16 *);
    void read_scalefactor (Ibitstream *, Header *);
!   bool read_sampledata (Ibitstream *);
!   bool put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  #endif
--- 82,89 ----
         SubbandLayer1Stereo (uint32 subbandnumber);
    void read_allocation (Ibitstream *, Header *, Crc16 *);
    void read_scalefactor (Ibitstream *, Header *);
!   boolean read_sampledata (Ibitstream *);
!   boolean put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  #endif
diff -c -r maplay/subband_layer_2.cc maplay.new/subband_layer_2.cc
*** maplay/subband_layer_2.cc	Thu Jun 23 12:14:36 1994
--- maplay.new/subband_layer_2.cc	Tue Feb 14 07:52:57 1995
***************
*** 591,597 ****
  }
  
  
! bool SubbandLayer2::read_sampledata (Ibitstream *stream)
  {
    if (allocation)
      if (groupingtable)
--- 591,597 ----
  }
  
  
! boolean SubbandLayer2::read_sampledata (Ibitstream *stream)
  {
    if (allocation)
      if (groupingtable)
***************
*** 633,639 ****
  }
  
  
! bool SubbandLayer2::put_next_sample (e_channels channels,
  				     SynthesisFilter *filter1, SynthesisFilter *)
  {
  #ifdef DEBUG
--- 633,639 ----
  }
  
  
! boolean SubbandLayer2::put_next_sample (e_channels channels,
  				     SynthesisFilter *filter1, SynthesisFilter *)
  {
  #ifdef DEBUG
***************
*** 726,732 ****
  }
  
  
! bool SubbandLayer2IntensityStereo::put_next_sample (e_channels channels,
  	SynthesisFilter *filter1, SynthesisFilter *filter2)
  {
  #ifdef DEBUG
--- 726,732 ----
  }
  
  
! boolean SubbandLayer2IntensityStereo::put_next_sample (e_channels channels,
  	SynthesisFilter *filter1, SynthesisFilter *filter2)
  {
  #ifdef DEBUG
***************
*** 880,888 ****
  }
  
  
! bool SubbandLayer2Stereo::read_sampledata (Ibitstream *stream)
  {
!   bool returnvalue = SubbandLayer2::read_sampledata (stream);
  
    if (channel2_allocation)
      if (channel2_groupingtable)
--- 880,888 ----
  }
  
  
! boolean SubbandLayer2Stereo::read_sampledata (Ibitstream *stream)
  {
!   boolean returnvalue = SubbandLayer2::read_sampledata (stream);
  
    if (channel2_allocation)
      if (channel2_groupingtable)
***************
*** 919,928 ****
  }
  
  
! bool SubbandLayer2Stereo::put_next_sample (e_channels channels,
  					   SynthesisFilter *filter1, SynthesisFilter *filter2)
  {
!   bool returnvalue = SubbandLayer2::put_next_sample (channels, filter1, filter2);
    if (channel2_allocation && channels != left)
    {
      register real sample = channel2_samples[samplenumber - 1];
--- 919,928 ----
  }
  
  
! boolean SubbandLayer2Stereo::put_next_sample (e_channels channels,
  					   SynthesisFilter *filter1, SynthesisFilter *filter2)
  {
!   boolean returnvalue = SubbandLayer2::put_next_sample (channels, filter1, filter2);
    if (channel2_allocation && channels != left)
    {
      register real sample = channel2_samples[samplenumber - 1];
diff -c -r maplay/subband_layer_2.h maplay.new/subband_layer_2.h
*** maplay/subband_layer_2.h	Thu Jun 23 12:14:40 1994
--- maplay.new/subband_layer_2.h	Tue Feb 14 07:52:58 1995
***************
*** 55,62 ****
    void		read_allocation (Ibitstream *, Header *, Crc16 *);
    virtual void	read_scalefactor_selection (Ibitstream *, Crc16 *);
    void		read_scalefactor (Ibitstream *, Header *);
!   bool		read_sampledata (Ibitstream *);
!   bool		put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter * = NULL);
  };
  
  
--- 55,62 ----
    void		read_allocation (Ibitstream *, Header *, Crc16 *);
    virtual void	read_scalefactor_selection (Ibitstream *, Crc16 *);
    void		read_scalefactor (Ibitstream *, Header *);
!   boolean		read_sampledata (Ibitstream *);
!   boolean		put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter * = NULL);
  };
  
  
***************
*** 75,85 ****
    }
    void read_scalefactor_selection (Ibitstream *, Crc16 *);
    void read_scalefactor (Ibitstream *, Header *);
!   bool read_sampledata (Ibitstream *stream)
    {
      return SubbandLayer2::read_sampledata (stream);
    }
!   bool put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  
--- 75,85 ----
    }
    void read_scalefactor_selection (Ibitstream *, Crc16 *);
    void read_scalefactor (Ibitstream *, Header *);
!   boolean read_sampledata (Ibitstream *stream)
    {
      return SubbandLayer2::read_sampledata (stream);
    }
!   boolean put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  
***************
*** 90,96 ****
    uint32 channel2_allocation;
    uint32 channel2_scfsi;
    real	 channel2_scalefactor1, channel2_scalefactor2, channel2_scalefactor3;
!   bool	 channel2_grouping;
    uint32 channel2_codelength;
    const real *channel2_groupingtable;
    real	 channel2_factor;
--- 90,96 ----
    uint32 channel2_allocation;
    uint32 channel2_scfsi;
    real	 channel2_scalefactor1, channel2_scalefactor2, channel2_scalefactor3;
!   boolean	 channel2_grouping;
    uint32 channel2_codelength;
    const real *channel2_groupingtable;
    real	 channel2_factor;
***************
*** 102,109 ****
    void read_allocation (Ibitstream *, Header *, Crc16 *);
    void read_scalefactor_selection (Ibitstream *, Crc16 *);
    void read_scalefactor (Ibitstream *, Header *);
!   bool read_sampledata (Ibitstream *);
!   bool put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  #endif
--- 102,109 ----
    void read_allocation (Ibitstream *, Header *, Crc16 *);
    void read_scalefactor_selection (Ibitstream *, Crc16 *);
    void read_scalefactor (Ibitstream *, Header *);
!   boolean read_sampledata (Ibitstream *);
!   boolean put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *);
  };
  
  #endif