On Thu, Oct 07, 2004 at 10:21:41AM +0200, Thomas Hoheisel wrote:
> I had a problem with the audio reproduction of the sdl.mixer().
<snip>

> I had problems with the sound of  Tuxpaint and Childsplay (hosted at 
> sourceforge.net)
> The sound was heavely distorted.
<snip>

> My research in childsplay code led me to pygame and finally to the 
> sdl.mixer().
> Increasing the buffersize in  pygames mixer.pre_init()   feature to 2048 
> solved the problem
> in childsplay, increasing it to 4096 caused a doubletrigger of the sound(?).

Hi Thomas, thanks for the note!

I've heard of (and heard!) sound issues on certain Windows with SDL apps.
with buffers which are too small.

Unfortunately, picking a suitable buffer size is kind of voodoo. :^(


> Changing data format from signed to unsigned had no effect at all.
> I use the Tuxpaint.exe (9.13) version, so I couldn't check wether it 
> will solve the problem in Tuxpaint although.

I don't remember that we made any changes to the audio system since
Tux Paint 0.9.13, but if you'd like to test out a pre-release of 0.9.14,
you can grab it for Windows here:

  ftp://ftp.sonic.net/pub/users/nbs/unix/x/tuxpaint/testbuilds/windows/


<snip>
> The strange thing is that I checked that on 2 other XP systems with 
> cheap onboard soundcards
> and the default buffersize worked fine.

*Ugh* :^(  (I'm glad it works okay on them, but the inconsistency is
annoying :^) )


<snip>
> My Questions :
> - Have you any further informations on that Windows XP/sdl.mixer/ 
> hardware problem?

No.  The SDL mailing list might be a help.  Now that I think of it,
I wonder if there's a global setting one can make to help SDL's sound.
(For example, you can change video options using environment variables
on Linux/Unix, I think.)

Perhaps SDL should allow for an $SDL_AUDIO_BUFFERSIZE variable that the
user can set, and which 'good' SDL-based programs will use.  (Rather than
doing it on an app-by-app basis.)


> - Do You have reports of other people with that problem ?

No.  But you can't be the only one! :^(  I hope that people out there
aren't trying out Tux Paint, hearing horrible noises, and thinking it's
a bad program, when really it's just a simple buffer/hardware problem!  <:^(


> - Is it possible ( does it make sense ) to increase the default 
> buffersize in Tuxpaint or does it affect other systems ?
> - or : Could you make the default-settings accessible via the config file ?

Until SDL has some kind of 'better way' of doing it, I think having
a setting might be a good idea.  Like:

  --soundbuffer 2048    on the command line, and

  soundbuffer=2048      in the config file


We could add it to the "Sound" section of the Tux Paint Config GUI app, too.
Something like:


  Sound Buffer Size: [ Small ]     <-- pulldown with human-readable values
  ( If sound is distorted, echoes,     that correspond to, say:
    or seems to play too late,         512, 1024, 2048, 4096
    try changing this setting. )


What do other folks think?  Anyone here actually very /familiar/ with SDL
sound buffer size issues?

Thx!!!

-bill!
[EMAIL PROTECTED]                            New Breed Software
http://www.newbreedsoftware.com/       Tux Paint 0.9.14 -- Coming soon!
_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to