Changeset 94e46c9 in mainline for uspace/app/wavplay/wave.c
- Timestamp:
- 2015-05-23T04:09:11Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b5143bd
- Parents:
- a25d893 (diff), 0683992 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/wave.c
ra25d893 r94e46c9 116 116 *channels = uint16_t_le2host(header->channels); 117 117 if (format) { 118 const unsigned size = uint 32_t_le2host(header->sample_size);118 const unsigned size = uint16_t_le2host(header->sample_size); 119 119 switch (size) { 120 120 case 8: *format = PCM_SAMPLE_UINT8; break; … … 157 157 header->channels = host2uint32_t_le(format.channels); 158 158 header->sample_size = 159 host2uint 32_t_le(pcm_sample_format_size(format.sample_format));159 host2uint16_t_le(pcm_sample_format_size(format.sample_format) * 8); 160 160 } 161 161 /**
Note:
See TracChangeset
for help on using the changeset viewer.