Changeset b7fd2a0 in mainline for uspace/lib/trackmod/protracker.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/trackmod/protracker.c
r36f0738 rb7fd2a0 79 79 * @return EOK on success, EINVAL if tag is not recognized. 80 80 */ 81 static int smp_tag_decode(uint8_t *tag, size_t *channels)81 static errno_t smp_tag_decode(uint8_t *tag, size_t *channels) 82 82 { 83 83 size_t nentries = sizeof(smp_tags) / sizeof(smptag_desc_t); … … 138 138 * @return EOK on success, ENOMEM if out of memory, EIO on I/O error. 139 139 */ 140 static int protracker_load_patterns(FILE *f, trackmod_module_t *module)140 static errno_t protracker_load_patterns(FILE *f, trackmod_module_t *module) 141 141 { 142 142 size_t cells; 143 143 size_t i, j; 144 int rc;144 errno_t rc; 145 145 size_t nread; 146 146 uint32_t *buf = NULL; … … 191 191 * @return EOk on success, ENOMEM if out of memory, EIO on I/O error. 192 192 */ 193 static int protracker_load_samples(FILE *f, protracker_smp_t *smp,193 static errno_t protracker_load_samples(FILE *f, protracker_smp_t *smp, 194 194 trackmod_module_t *module) 195 195 { 196 int rc;196 errno_t rc; 197 197 size_t i; 198 198 uint8_t ftval; … … 256 256 * or if any error is found in the format of the file. 257 257 */ 258 int trackmod_protracker_load(char *fname, trackmod_module_t **rmodule)258 errno_t trackmod_protracker_load(char *fname, trackmod_module_t **rmodule) 259 259 { 260 260 FILE *f = NULL; … … 269 269 size_t i; 270 270 size_t nread; 271 int rc;271 errno_t rc; 272 272 273 273 f = fopen(fname, "rb");
Note:
See TracChangeset
for help on using the changeset viewer.