Mercurial > SDL_sound_CoreAudio
comparison decoders/mpglib/layer3.c @ 299:7b1df7526915
Patches for Visual C compatibility.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 25 Mar 2002 20:52:06 +0000 |
parents | ad4c8f34136a |
children | fb519e6028e3 |
comparison
equal
deleted
inserted
replaced
298:c92c07e07636 | 299:7b1df7526915 |
---|---|
321 register struct gr_info_s *gr_info = &(si->ch[ch].gr[gr]); | 321 register struct gr_info_s *gr_info = &(si->ch[ch].gr[gr]); |
322 | 322 |
323 gr_info->part2_3_length = getbits(12); | 323 gr_info->part2_3_length = getbits(12); |
324 gr_info->big_values = getbits_fast(9); | 324 gr_info->big_values = getbits_fast(9); |
325 if(gr_info->big_values > 288) { | 325 if(gr_info->big_values > 288) { |
326 SNDDBG("MPGLIB: big_values too large!\n"); | 326 SNDDBG(("MPGLIB: big_values too large!\n")); |
327 gr_info->big_values = 288; | 327 gr_info->big_values = 288; |
328 } | 328 } |
329 gr_info->pow2gain = gainpow2+256 - getbits_fast(8) + powdiff; | 329 gr_info->pow2gain = gainpow2+256 - getbits_fast(8) + powdiff; |
330 if(ms_stereo) | 330 if(ms_stereo) |
331 gr_info->pow2gain += 2; | 331 gr_info->pow2gain += 2; |
395 register struct gr_info_s *gr_info = &(si->ch[ch].gr[0]); | 395 register struct gr_info_s *gr_info = &(si->ch[ch].gr[0]); |
396 | 396 |
397 gr_info->part2_3_length = getbits(12); | 397 gr_info->part2_3_length = getbits(12); |
398 gr_info->big_values = getbits_fast(9); | 398 gr_info->big_values = getbits_fast(9); |
399 if(gr_info->big_values > 288) { | 399 if(gr_info->big_values > 288) { |
400 SNDDBG("MPGLIB: big_values too large!\n"); | 400 SNDDBG(("MPGLIB: big_values too large!\n")); |
401 gr_info->big_values = 288; | 401 gr_info->big_values = 288; |
402 } | 402 } |
403 gr_info->pow2gain = gainpow2+256 - getbits_fast(8) + powdiff; | 403 gr_info->pow2gain = gainpow2+256 - getbits_fast(8) + powdiff; |
404 if(ms_stereo) | 404 if(ms_stereo) |
405 gr_info->pow2gain += 2; | 405 gr_info->pow2gain += 2; |