comparison dec_audio.c @ 4151:6ad5da34c463

added mp3_printheader for mp3lib init\n
author alex
date Mon, 14 Jan 2002 16:27:55 +0000
parents ae6f97724b84
children c92c23a42e91
comparison
equal deleted inserted replaced
4150:01d0a5fabf65 4151:6ad5da34c463
722 MP3_Init(fakemono); 722 MP3_Init(fakemono);
723 #else 723 #else
724 MP3_Init(); 724 MP3_Init();
725 #endif 725 #endif
726 MP3_samplerate=MP3_channels=0; 726 MP3_samplerate=MP3_channels=0;
727 // printf("[\n");
728 sh_audio->a_buffer_len=MP3_DecodeFrame(sh_audio->a_buffer,-1); 727 sh_audio->a_buffer_len=MP3_DecodeFrame(sh_audio->a_buffer,-1);
729 // printf("]\n");
730 sh_audio->channels=2; // hack 728 sh_audio->channels=2; // hack
731 sh_audio->samplerate=MP3_samplerate; 729 sh_audio->samplerate=MP3_samplerate;
732 sh_audio->i_bps=MP3_bitrate*(1000/8); 730 sh_audio->i_bps=MP3_bitrate*(1000/8);
731 MP3_PrintHeader();
733 break; 732 break;
734 } 733 }
735 #ifdef HAVE_OGGVORBIS 734 #ifdef HAVE_OGGVORBIS
736 case AFM_VORBIS: { 735 case AFM_VORBIS: {
737 // OggVorbis Audio: 736 // OggVorbis Audio: