Changeset d30292e in mainline
- Timestamp:
- 2012-07-15T00:41:24Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- afa7c17
- Parents:
- 2d9197e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/pcm_sample_format.h
r2d9197e rd30292e 37 37 #define PCM_SAMPLE_FORMAT_H_ 38 38 39 #include <bool.h> 40 39 41 typedef enum { 40 42 PCM_SAMPLE_UINT8, … … 57 59 PCM_SAMPLE_SINT32_BE, 58 60 PCM_SAMPLE_FLOAT32, 61 PCM_SAMPLE_FORMAT_LAST = PCM_SAMPLE_FLOAT32, 59 62 } pcm_sample_format_t; 63 64 static inline bool pcm_sample_format_is_signed(pcm_sample_format_t format) 65 { 66 switch(format) { 67 case PCM_SAMPLE_SINT8: 68 case PCM_SAMPLE_SINT16_LE: 69 case PCM_SAMPLE_SINT16_BE: 70 case PCM_SAMPLE_SINT24_LE: 71 case PCM_SAMPLE_SINT24_BE: 72 case PCM_SAMPLE_SINT24_32_LE: 73 case PCM_SAMPLE_SINT24_32_BE: 74 case PCM_SAMPLE_SINT32_LE: 75 case PCM_SAMPLE_SINT32_BE: 76 return true; 77 case PCM_SAMPLE_UINT8: 78 case PCM_SAMPLE_UINT16_LE: 79 case PCM_SAMPLE_UINT16_BE: 80 case PCM_SAMPLE_UINT24_LE: 81 case PCM_SAMPLE_UINT24_BE: 82 case PCM_SAMPLE_UINT24_32_LE: 83 case PCM_SAMPLE_UINT24_32_BE: 84 case PCM_SAMPLE_UINT32_LE: 85 case PCM_SAMPLE_UINT32_BE: 86 case PCM_SAMPLE_FLOAT32: 87 default: 88 return false; 89 } 90 } 60 91 61 92 static inline size_t pcm_sample_format_size(pcm_sample_format_t format)
Note:
See TracChangeset
for help on using the changeset viewer.