[SDL] SDL & eee PC

Rhythmic Fistman rfistman at gmail.com
Wed Apr 16 07:38:15 PDT 2008


>  From: Jacob Meuser <jakemsr at sdf.lonestar.org>

>  > under parallels ubuntu (1.2.11). SDL_OpenAudio is failing with
>  > the message "buffer size must be a power of 2". passing an "obtained" audio
>  > spec doesn't help, fn fails just the same. making the buffer size a power
>  > of 2 doesn't actually get you any output. however, setting SDL_AUDIODRIVER
>  > to either "esd" or "alsa" does work and lifts the unknowable a priori power of 2
>  > restriction.
>
>  the power of 2 restriction is from OSS specs.

That may be, but as of 1.2.11 there was no way to ask
the driver what buffer size IS acceptable.

>  > "esd" can't do silence, clicks and seems to overflow with lots
>  > of sounds. "alsa" seems doesn't have this problem. however killing the alsa
>  > version with ctl-\ can cause a hellish racket (ctl-c no). Note: alsa asks
>  > for fewer frames (esd doesn't), hence the spooner* code is working.
>  > why doesn't the default driver work and which is it??
>  >
>  > the non-functional default (on my ubuntu and ben's kubuntu) could be oss?
>
>  is sdl doing any conversions or resampling?

How would I know? I was supplying 8bit mono at 44.1kHz, so that'll likely
get converted to 16bit stereo. 8->16 conversion's very hard to get right,
so I'll try switching to 16bit output, however the kinds of noises I
heard didn't
sound like your typical conversion bugs...

> if so, I wonder if  the patch in bugzilla #477 will help.

Could be, mono -> stereo IS upsampling, so thanks, I'll try it out.

RF


More information about the SDL mailing list