mirror of https://github.com/mpv-player/mpv
merged with mpg123 0.59s-pre
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10344 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1d9599e0ae
commit
4cb0807bce
1223
mp3lib/layer3.c
1223
mp3lib/layer3.c
File diff suppressed because it is too large
Load Diff
|
@ -94,8 +94,8 @@ struct gr_info_s {
|
||||||
unsigned preflag;
|
unsigned preflag;
|
||||||
unsigned scalefac_scale;
|
unsigned scalefac_scale;
|
||||||
unsigned count1table_select;
|
unsigned count1table_select;
|
||||||
int full_gain[3];
|
real *full_gain[3];
|
||||||
int pow2gain;
|
real *pow2gain;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct III_sideinfo
|
struct III_sideinfo
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#include "mp3lib/mp3.h"
|
#include "mp3lib/mp3.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "cpudetect.h"
|
||||||
|
|
||||||
static FILE* mp3file=NULL;
|
static FILE* mp3file=NULL;
|
||||||
|
|
||||||
|
@ -21,6 +22,7 @@ int mplayer_audio_read(char *buf,int size){
|
||||||
#define BUFFLEN 4608
|
#define BUFFLEN 4608
|
||||||
static unsigned char buffer[BUFFLEN];
|
static unsigned char buffer[BUFFLEN];
|
||||||
|
|
||||||
|
|
||||||
int main(int argc,char* argv[]){
|
int main(int argc,char* argv[]){
|
||||||
int len;
|
int len;
|
||||||
int total=0;
|
int total=0;
|
||||||
|
@ -30,6 +32,8 @@ int main(int argc,char* argv[]){
|
||||||
|
|
||||||
mp3file=fopen((argc>1)?argv[1]:"test.mp3","rb");
|
mp3file=fopen((argc>1)?argv[1]:"test.mp3","rb");
|
||||||
if(!mp3file){ printf("file not found\n"); exit(1); }
|
if(!mp3file){ printf("file not found\n"); exit(1); }
|
||||||
|
|
||||||
|
GetCpuCaps(&gCpuCaps);
|
||||||
|
|
||||||
// MPEG Audio:
|
// MPEG Audio:
|
||||||
#ifdef USE_FAKE_MONO
|
#ifdef USE_FAKE_MONO
|
||||||
|
|
Loading…
Reference in New Issue