[Mplayer-cvslog] CVS: main dec_audio.c,1.13,1.14

GEREOFFY arpi_esp at users.sourceforge.net
Fri May 25 20:26:26 CEST 2001


Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv9643

Modified Files:
	dec_audio.c 
Log Message:
using alaw.h instead of alaw.c

Index: dec_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_audio.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** dec_audio.c	2001/05/11 01:22:35	1.13
--- dec_audio.c	2001/05/25 18:26:24	1.14
***************
*** 26,30 ****
  #include "libac3/ac3.h"
  
! #include "alaw.c"
  #include "xa/xa_gsm.h"
  
--- 26,31 ----
  #include "libac3/ac3.h"
  
! #include "alaw.h"
! 
  #include "xa/xa_gsm.h"
  
***************
*** 203,210 ****
  case 5: {
    // aLaw audio codec:
-   if(sh_audio->format==6)
-     Gen_aLaw_2_Signed(); // init table
-   else
-     Gen_uLaw_2_Signed(); // init table
    sh_audio->channels=sh_audio->wf->nChannels;
    sh_audio->samplerate=sh_audio->wf->nSamplesPerSec;
--- 204,207 ----
***************
*** 291,298 ****
          if(sh_audio->format==6){
          // aLaw
!           while(l>0){ --l; d[l]=xa_alaw_2_sign[s[l]]; }
          } else {
          // uLaw
!           while(l>0){ --l; d[l]=xa_ulaw_2_sign[s[l]]; }
          }
          break;
--- 288,295 ----
          if(sh_audio->format==6){
          // aLaw
!           while(l>0){ --l; d[l]=alaw2short[s[l]]; }
          } else {
          // uLaw
!           while(l>0){ --l; d[l]=ulaw2short[s[l]]; }
          }
          break;


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list