|
Line 0
Link Here
|
|
|
1 |
--- audio/out/ao_oss.c.orig 2017-07-22 06:22:09 UTC |
| 2 |
+++ audio/out/ao_oss.c |
| 3 |
@@ -387,8 +387,9 @@ static int reopen_device(struct ao *ao, |
| 4 |
} |
| 5 |
} |
| 6 |
|
| 7 |
- ao->period_size = channels.num * af_fmt_to_bytes(format); |
| 8 |
- p->outburst -= p->outburst % ao->period_size; // round down |
| 9 |
+ int sstride = channels.num * af_fmt_to_bytes(format); |
| 10 |
+ p->outburst -= p->outburst % sstride; // round down |
| 11 |
+ ao->period_size = p->outburst / sstride; |
| 12 |
|
| 13 |
return 0; |
| 14 |
|