comparison libao2/afmt.c @ 12476:131b6c682863

removed #ifdefs that are already handled by libao2/afmt.h
author reimar
date Fri, 14 May 2004 21:16:00 +0000
parents c8677169cc2c
children 661718721c92
comparison
equal deleted inserted replaced
12475:16e673350486 12476:131b6c682863
28 return("Signed 16-bit (Big-Endian)"); 28 return("Signed 16-bit (Big-Endian)");
29 case AFMT_MPEG: 29 case AFMT_MPEG:
30 return("MPEG (2) audio"); 30 return("MPEG (2) audio");
31 case AFMT_AC3: 31 case AFMT_AC3:
32 return("AC3"); 32 return("AC3");
33 /*
34 the following two formats are not available with old linux kernel
35 headers (e.g. in 2.2.16)
36 */
37 #ifdef AFMT_S32_LE
38 case AFMT_S32_LE: 33 case AFMT_S32_LE:
39 return("Signed 32-bit (Little-Endian)"); 34 return("Signed 32-bit (Little-Endian)");
40 #endif
41 #ifdef AFMT_S32_BE
42 case AFMT_S32_BE: 35 case AFMT_S32_BE:
43 return("Signed 32-bit (Big-Endian)"); 36 return("Signed 32-bit (Big-Endian)");
44 #endif
45 case AFMT_FLOAT: 37 case AFMT_FLOAT:
46 return("Floating Point"); 38 return("Floating Point");
47 } 39 }
48 return("Unknown"); 40 return("Unknown");
49 } 41 }
56 case AFMT_S16_BE: 48 case AFMT_S16_BE:
57 case AFMT_U16_LE: 49 case AFMT_U16_LE:
58 case AFMT_U16_BE: 50 case AFMT_U16_BE:
59 return 16;//16 bits 51 return 16;//16 bits
60 52
61 /*
62 the following two formats are not available with old linux kernel
63 headers (e.g. in 2.2.16)
64 */
65 #ifdef AFMT_S32_LE
66 case AFMT_S32_LE: 53 case AFMT_S32_LE:
67 return 32;
68 #endif
69 #ifdef AFMT_S32_BE
70 case AFMT_S32_BE: 54 case AFMT_S32_BE:
71 return 32;
72 #endif
73 case AFMT_FLOAT: 55 case AFMT_FLOAT:
74 return 32; 56 return 32;
75 57
76 case AFMT_MU_LAW: 58 case AFMT_MU_LAW:
77 case AFMT_A_LAW: 59 case AFMT_A_LAW: