Changeset 9e1800c in mainline for uspace/app/wavplay/main.c
- Timestamp:
- 2013-03-17T16:23:57Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd5860f
- Parents:
- 504f1ea3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/main.c
r504f1ea3 r9e1800c 60 60 return EIO; 61 61 } 62 unsigned rate, channels; 63 pcm_sample_format_t format; 62 pcm_format_t format; 64 63 const char *error; 65 int ret = wav_parse_header(&header, NULL, NULL, & channels, &rate,66 &format , &error);64 int ret = wav_parse_header(&header, NULL, NULL, &format.channels, 65 &format.sampling_rate, &format.sample_format, &error); 67 66 if (ret != EOK) { 68 67 printf("Error parsing wav header: %s.\n", error); … … 71 70 } 72 71 hound_context_t *hound = hound_context_create_playback(filename, 73 channels, rate,format, 0);72 format, 0); 74 73 if (!hound) { 75 74 printf("Failed to create HOUND context\n");
Note:
See TracChangeset
for help on using the changeset viewer.