[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] pygame mixer problem upgrading to ubuntu intrepid
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] pygame mixer problem upgrading to ubuntu intrepid
- From: "Charlie Nolan" <funnyman3595@xxxxxxxxx>
- Date: Sat, 15 Nov 2008 15:59:04 -0600
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 15 Nov 2008 16:59:08 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=5to+r9lCzT+zOsQsc6Dg/34/9t20r5sZZWSSb2cMtU8=; b=C6/tlJsXrxlFz+LOAYa6blTmXW45iGwDSL1SmFI2YabRPhW9Erej0yiREHu+oGEplm MhmU1UE6WTti/RgFeuG/L6u5hdjkgo/7fDlk1merXxRaabkgPYI67GgmPma7Gbe+4CiR 0+T9XV2jcbH5NDvae6RV1IMwbH2bZGmJ1HGOQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=HeiDb0jDCofQ6VAXlxjwNJTJmWnWfM0lw5xhjwn1j6VlII6Dp6tZv80KvKk0mCTAqi 4PfO9w0yCA3rAf7cwgRynZR5qA/zjFT1XGmNfG6oZHasemy/4IshqlwEikezHnhx5jTu yEmgoxYFzG0OnePcO6w93ItqVzwronD74AF+g=
- In-reply-to: <a0efdb8a0811150649m3eac1d29r954153dbd1a7a3dc@xxxxxxxxxxxxxx>
- References: <a0efdb8a0811150649m3eac1d29r954153dbd1a7a3dc@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
You probably just upgraded pygame from 1.7.1 to 1.8.1. 1.8.1
increased the default sound buffer size to avoid various hiccups in
sound playback. (It was supposed to be in 1.8.0, but a bug caused it
to decrease and be stuck there.) You can override it by calling
pygame.mixer.init or .pre_init and giving a buffer size. Values get
rounded up to the next power of two.
Someone with SVN access might want to fix the default, by the way.
It's set to 1024*3 (=3072), but the power-of-two rounding makes that
effectively 4096. The docs also say the buffer size "must be a power
of two", which the default isn't. And that should really read "should
be", since it's rounded up otherwise.
-FM
On Sat, Nov 15, 2008 at 8:49 AM, pymike <pymike93@xxxxxxxxx> wrote:
> Hi all,
>
> I recently upgraded my Ubuntu from Hardy (8.04) to Intrepid (8.10). Now
> sound/music are delaying about 10-20 milleseconds in pygame. :-S
>
> Sounds in other SDL applications (I've tested SuperTux 2 and Wormux) work
> perfectly, which makes me think it's not a sound driver issue.
>
> Can anyone help me to get this fixed?
>
> Thanks :-)
>
> --
> - pymike
> "Stop loling into a false sense of hilarity"
>