Re: [AD] Allegro fails to initialize sound under Pulseaudio

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sun, 2007-10-21 at 12:57 +0200, Elias Pschernig wrote:
> > Really? I find it really odd that a sound server, thats meant to pipe and mix 
> > many sound streams and formats can only handle signed data.. Just seems wrong 
> > to me. :o
> > 
> 
> Yes, it's because it only supports 32-bit (and 64-bit I think) float
> samples and nothing else - at least from what I remember when writing
> the driver. Their goal was not to support different formats, but to have
> as low latency as possible (e.g. the docs even disallow calling
> pthread_mutex_lock inside the mixer callback - even though I simply call
> _mix_some_samples which does that and it still seems to work).

Hm, looking again at alsa9.c, there's this line:

alsa_signed = 0;

Probably changing it to:

alsa_signed = 1;

makes the alsa driver use signed.. so the portaudio problem should be
easy to fix, instead of hardcoding alsa_signed, we'd just need to figure
out how to detect what alsa supports.

-- 
Elias Pschernig <elias@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/