Changeset 92b59c7 in mainline
- Timestamp:
- 2013-03-16T15:14:58Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6606378
- Parents:
- 39a379a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/dplay.c
r39a379a r92b59c7 212 212 printf("Playing: %dHz, %s, %d channel(s).\n", pb->f.sampling_rate, 213 213 pcm_sample_format_str(pb->f.sample_format), pb->f.channels); 214 useconds_t work_time = 70000; /* 10 ms */214 useconds_t work_time = 20000; /* 20 ms */ 215 215 bool started = false; 216 216 size_t pos = 0; … … 239 239 240 240 if (!started) { 241 constint ret = audio_pcm_start_playback(pb->device,241 int ret = audio_pcm_start_playback(pb->device, 242 242 pb->f.channels, pb->f.sampling_rate, 243 243 pb->f.sample_format); … … 247 247 } 248 248 started = true; 249 ret = audio_pcm_get_buffer_pos(pb->device, &pos); 250 if (ret != EOK) { 251 printf("Failed to update position indicator\n"); 252 } 249 253 } 250 254 const size_t to_play = buffer_occupied(pb, pos);
Note:
See TracChangeset
for help on using the changeset viewer.