Changeset 5a6cc679 in mainline for uspace/app/wavplay/main.c
- Timestamp:
- 2018-01-31T02:21:24Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- File:
-
- 1 edited
-
uspace/app/wavplay/main.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/main.c
r132ab5d1 r5a6cc679 57 57 * @return Error code. 58 58 */ 59 static int hplay_ctx(hound_context_t *ctx, const char *filename)59 static errno_t hplay_ctx(hound_context_t *ctx, const char *filename) 60 60 { 61 61 printf("Hound context playback: %s\n", filename); … … 76 76 pcm_format_t format; 77 77 const char *error; 78 int ret = wav_parse_header(&header, NULL, NULL, &format.channels,78 errno_t ret = wav_parse_header(&header, NULL, NULL, &format.channels, 79 79 &format.sampling_rate, &format.sample_format, &error); 80 80 if (ret != EOK) { … … 118 118 * @return Error code 119 119 */ 120 static int hplay(const char *filename)120 static errno_t hplay(const char *filename) 121 121 { 122 122 printf("Hound playback: %s\n", filename); … … 137 137 pcm_format_t format; 138 138 const char *error; 139 int ret = wav_parse_header(&header, NULL, NULL, &format.channels,139 errno_t ret = wav_parse_header(&header, NULL, NULL, &format.channels, 140 140 &format.sampling_rate, &format.sample_format, &error); 141 141 if (ret != EOK) { … … 197 197 * @return Error code. 198 198 */ 199 static int play_wrapper(void *arg)199 static errno_t play_wrapper(void *arg) 200 200 { 201 201 assert(arg); 202 202 fib_play_t *p = arg; 203 const int ret = hplay_ctx(p->ctx, p->file);203 const errno_t ret = hplay_ctx(p->ctx, p->file); 204 204 atomic_dec(p->count); 205 205 free(arg); … … 289 289 return 1; 290 290 } 291 const int ret = hound_context_connect_target(hound_ctx,291 const errno_t ret = hound_context_connect_target(hound_ctx, 292 292 HOUND_DEFAULT_TARGET); 293 293 if (ret != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.
