Changeset 1433ecda in mainline for uspace/lib/pcm/include
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/lib/pcm/include/pcm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcm/include/pcm/format.h
r47b2d7e3 r1433ecda 87 87 } 88 88 89 bool pcm_format_same(const pcm_format_t *a, const pcm_format_t *b);89 bool pcm_format_same(const pcm_format_t *a, const pcm_format_t *b); 90 90 91 91 /** … … 102 102 size_t src_size, const pcm_format_t *sf, const pcm_format_t *df); 103 103 errno_t pcm_format_mix(void *dst, const void *src, size_t size, const pcm_format_t *f); 104 errno_t pcm_format_convert(pcm_format_t a, void *srca, size_t sizea,105 pcm_format_t b, void *srcb, size_t *sizeb);104 errno_t pcm_format_convert(pcm_format_t a, void *srca, size_t sizea, 105 pcm_format_t b, void *srcb, size_t *sizeb); 106 106 107 107 #endif -
uspace/lib/pcm/include/pcm/sample_format.h
r47b2d7e3 r1433ecda 71 71 static inline bool pcm_sample_format_is_signed(pcm_sample_format_t format) 72 72 { 73 switch (format) {73 switch (format) { 74 74 case PCM_SAMPLE_SINT8: 75 75 case PCM_SAMPLE_SINT16_LE: … … 104 104 static inline size_t pcm_sample_format_size(pcm_sample_format_t format) 105 105 { 106 switch (format) {106 switch (format) { 107 107 case PCM_SAMPLE_UINT8: 108 108 case PCM_SAMPLE_SINT8: … … 180 180 * @return Valid string representation. 181 181 */ 182 static inline const char * 183 { 184 switch (format) {182 static inline const char *pcm_sample_format_str(pcm_sample_format_t format) 183 { 184 switch (format) { 185 185 case PCM_SAMPLE_UINT8: 186 186 return "8 bit unsigned";
Note:
See TracChangeset
for help on using the changeset viewer.