diff options
Diffstat (limited to 'audio/out/ao_oss.c')
-rw-r--r-- | audio/out/ao_oss.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c index 1478d1400e..1edf55a095 100644 --- a/audio/out/ao_oss.c +++ b/audio/out/ao_oss.c @@ -394,7 +394,8 @@ static int reopen_device(struct ao *ao, bool allow_format_changes) } } - p->outburst -= p->outburst % (channels.num * af_fmt_to_bytes(format)); // round down + ao->period_size = channels.num * af_fmt_to_bytes(format); + p->outburst -= p->outburst % ao->period_size; // round down return 0; |