mirror of https://github.com/mpv-player/mpv
added float
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8223 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7ab2e83945
commit
ab08865ae1
|
@ -42,6 +42,8 @@ char *audio_out_format_name(int format)
|
||||||
case AFMT_S32_BE:
|
case AFMT_S32_BE:
|
||||||
return("Signed 32-bit (Big-Endian)");
|
return("Signed 32-bit (Big-Endian)");
|
||||||
#endif
|
#endif
|
||||||
|
case AFMT_FLOAT:
|
||||||
|
return("Floating Point");
|
||||||
}
|
}
|
||||||
return("Unknown");
|
return("Unknown");
|
||||||
}
|
}
|
||||||
|
@ -50,6 +52,12 @@ char *audio_out_format_name(int format)
|
||||||
int audio_out_format_bits(int format){
|
int audio_out_format_bits(int format){
|
||||||
switch (format)
|
switch (format)
|
||||||
{
|
{
|
||||||
|
case AFMT_S16_LE:
|
||||||
|
case AFMT_S16_BE:
|
||||||
|
case AFMT_U16_LE:
|
||||||
|
case AFMT_U16_BE:
|
||||||
|
return 16;//16 bits
|
||||||
|
|
||||||
/*
|
/*
|
||||||
the following two formats are not available with old linux kernel
|
the following two formats are not available with old linux kernel
|
||||||
headers (e.g. in 2.2.16)
|
headers (e.g. in 2.2.16)
|
||||||
|
@ -62,12 +70,8 @@ int audio_out_format_bits(int format){
|
||||||
case AFMT_S32_BE:
|
case AFMT_S32_BE:
|
||||||
return 32;
|
return 32;
|
||||||
#endif
|
#endif
|
||||||
|
case AFMT_FLOAT:
|
||||||
case AFMT_U16_LE:
|
return 32;
|
||||||
case AFMT_U16_BE:
|
|
||||||
case AFMT_S16_LE:
|
|
||||||
case AFMT_S16_BE:
|
|
||||||
return 16;//16 bits
|
|
||||||
|
|
||||||
case AFMT_MU_LAW:
|
case AFMT_MU_LAW:
|
||||||
case AFMT_A_LAW:
|
case AFMT_A_LAW:
|
||||||
|
|
|
@ -47,3 +47,7 @@
|
||||||
# define AFMT_S32_NE AFMT_S32_LE
|
# define AFMT_S32_NE AFMT_S32_LE
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef AFMT_FLOAT
|
||||||
|
# define AFMT_FLOAT 0x00004000
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue