From 7f0c6629b9ec1ec1cf11dfbd4a6bba43d3cce9e2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 24 Dec 2009 15:41:45 -0800 Subject: Use a 64-bit value to scale potentially-large numbers --- Alc/pulseaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/pulseaudio.c') diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index a40cfee7..0353dafd 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -581,7 +581,7 @@ static ALCboolean pulse_reset_playback(ALCdevice *device) //{{{ /* Server updated our playback rate, so modify the buffer attribs * accordingly. */ - data->attr.minreq = (data->attr.minreq/data->frame_size) * + data->attr.minreq = (ALuint64)(data->attr.minreq/data->frame_size) * data->spec.rate / device->Frequency * data->frame_size; data->attr.tlength = data->attr.minreq * device->NumUpdates; -- cgit v1.2.3