Changeset 7c3fb9b in mainline for uspace/app/wavplay/dplay.c
- Timestamp:
- 2018-05-17T08:29:01Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/dplay.c
rfac0ac7 r7c3fb9b 262 262 while (true) { 263 263 size_t available = buffer_avail(pb, pos); 264 /* Writing might need wrap around the end, 265 * read directly to device buffer */ 264 /* 265 * Writing might need wrap around the end, 266 * read directly to device buffer 267 */ 266 268 size_t bytes = fread(pb->buffer.write_ptr, sizeof(uint8_t), 267 269 min(available, buffer_remain(pb)), pb->source); … … 319 321 getuptime(&time); 320 322 321 /* we did not use all the space we had, 322 * that is the end */ 323 /* 324 * we did not use all the space we had, 325 * that is the end 326 */ 323 327 if (available) 324 328 break;
Note:
See TracChangeset
for help on using the changeset viewer.