Hey, thanks for the reply :-) I already had version 1.8.1.
Adding pygame.mixer.pre_init(1024*3) [before pygame.init()] delays the sound even more, and the playback is distorted. I also tried 1024 and 1024*2 and got the same (or similar) results :S On Sat, Nov 15, 2008 at 3:59 PM, Charlie Nolan <[EMAIL PROTECTED]>wrote: > 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 <[EMAIL PROTECTED]> 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" > > > -- - pymike "Stop loling into a false sense of hilarity"
