Changeset 7a5ab20 in mainline
- Timestamp:
 - 2011-12-05T18:38:30Z (14 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - c891eaca
 - Parents:
 - 2809563
 - File:
 - 
      
- 1 edited
 
- 
          
  uspace/app/dplay/dplay.c (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/app/dplay/dplay.c
r2809563 r7a5ab20 45 45 46 46 #include <stdio.h> 47 #include <macros.h> 47 48 48 49 #include "wave.h" … … 78 79 while (true) { 79 80 tv_add(&time, interval); /* Next update point */ 81 80 82 struct timeval current; 81 83 gettimeofday(¤t, NULL); 82 84 83 const suseconds_t delay = tv_sub(&time, ¤t);85 const suseconds_t delay = min(tv_sub(&time, ¤t), interval); 84 86 if (delay > 0) 85 87 usleep(delay); 88 86 89 const size_t bytes = 87 90 fread(buffer_place, sizeof(uint8_t), half_buf, source);  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  