Ticket #754: patch-stutter
| File patch-stutter, 481 bytes (added by , 19 years ago) |
|---|
| Line | |
|---|---|
| 1 | $NetBSD$ |
| 2 | |
| 3 | --- libao2/ao_sun.c.orig 2006-10-22 22:32:25.000000000 +0000 |
| 4 | +++ libao2/ao_sun.c |
| 5 | @@ -664,7 +664,13 @@ static void audio_resume(void) |
| 6 | struct audio_info info; |
| 7 | AUDIO_INITINFO(&info); |
| 8 | info.play.pause = 0; |
| 9 | - ioctl(audio_fd, AUDIO_SETINFO, &info); |
| 10 | + // maybe sstop sstuttering |
| 11 | + info.play.samples = 0; |
| 12 | + info.play.eof = 0; |
| 13 | + info.play.error = 0; |
| 14 | + ioctl (audio_fd, AUDIO_SETINFO, &info); |
| 15 | + queued_bursts = 0; |
| 16 | + queued_samples = 0; |
| 17 | } |
| 18 | |
| 19 |
