Changeset 039337e8 in mainline
 Timestamp:
 20120712T02:09:07Z (10 years ago)
 Branches:
 lfn, master, serial
 Children:
 737b4c0
 Parents:
 346643c
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

uspace/lib/c/include/pcm_sample_format.h
r346643c r039337e8 62 62 { 63 63 switch(format) { 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 64 case PCM_SAMPLE_UINT8: 65 case PCM_SAMPLE_SINT8: 66 return 1; 67 case PCM_SAMPLE_UINT16_LE: 68 case PCM_SAMPLE_UINT16_BE: 69 case PCM_SAMPLE_SINT16_LE: 70 case PCM_SAMPLE_SINT16_BE: 71 return 2; 72 case PCM_SAMPLE_UINT24_LE: 73 case PCM_SAMPLE_UINT24_BE: 74 case PCM_SAMPLE_SINT24_LE: 75 case PCM_SAMPLE_SINT24_BE: 76 return 3; 77 case PCM_SAMPLE_UINT24_32_LE: 78 case PCM_SAMPLE_UINT24_32_BE: 79 case PCM_SAMPLE_SINT24_32_LE: 80 case PCM_SAMPLE_SINT24_32_BE: 81 case PCM_SAMPLE_UINT32_LE: 82 case PCM_SAMPLE_UINT32_BE: 83 case PCM_SAMPLE_SINT32_LE: 84 case PCM_SAMPLE_SINT32_BE: 85 case PCM_SAMPLE_FLOAT32: 86 return 4; 87 default: 88 return 0; 89 89 } 90 90 } … … 93 93 { 94 94 switch(format) { 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 95 case PCM_SAMPLE_UINT8: 96 return "8 bit unsinged"; 97 case PCM_SAMPLE_SINT8: 98 return "8 bit singed"; 99 case PCM_SAMPLE_UINT16_LE: 100 return "16 bit unsigned(LE)"; 101 case PCM_SAMPLE_SINT16_LE: 102 return "16 bit singed(LE)"; 103 case PCM_SAMPLE_UINT16_BE: 104 return "16 bit unsigned(BE)"; 105 case PCM_SAMPLE_SINT16_BE: 106 return "16 bit signed(BE)"; 107 case PCM_SAMPLE_UINT24_LE: 108 return "24 bit unsigned(LE)"; 109 case PCM_SAMPLE_SINT24_LE: 110 return "24 bit signed(LE)"; 111 case PCM_SAMPLE_UINT24_BE: 112 return "24 bit unsigned(BE)"; 113 case PCM_SAMPLE_SINT24_BE: 114 return "24 bit signed(BE)"; 115 case PCM_SAMPLE_UINT24_32_LE: 116 return "24 bit(4byte aligned) unsigned(LE)"; 117 case PCM_SAMPLE_UINT24_32_BE: 118 return "24 bit(4byte aligned) unsigned(BE)"; 119 case PCM_SAMPLE_SINT24_32_LE: 120 return "24 bit(4byte aligned) signed(LE)"; 121 case PCM_SAMPLE_SINT24_32_BE: 122 return "24 bit(4byte aligned) signed(BE)"; 123 case PCM_SAMPLE_UINT32_LE: 124 return "32 bit unsigned(LE)"; 125 case PCM_SAMPLE_UINT32_BE: 126 return "32 bit unsigned(BE)"; 127 case PCM_SAMPLE_SINT32_LE: 128 return "32 bit signed(LE)"; 129 case PCM_SAMPLE_SINT32_BE: 130 return "32 bit signed(BE)"; 131 case PCM_SAMPLE_FLOAT32: 132 return "32 bit float"; 133 default: 134 return "Unknown sample format"; 135 135 } 136 136 }
Note: See TracChangeset
for help on using the changeset viewer.