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

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


On 10/6/07, Steven Brown <steven.w.j.brown@xxxxxxxxxx> wrote:
> I think I found the problem and I've updated the ticket:
> http://www.pulseaudio.org/ticket/133
>
> It seems that Allegro requests unsigned formats, which are not supported
> by PulseAudio.  (See the ticket for more details.)  Adding support to
> PulseAudio has been discussed briefly, but I'm not sure when (or if) it
> will happen.

It would be easy to add a sign conversion pass to Allegro's mixer as
well of course. Basically, in
https://alleg.svn.sourceforge.net/svnroot/alleg/allegro/branches/4.3.10plus/src/unix/alsa9.c
provide another copy of alsa_mix which has an extra loop over the
sample buffer and converts to unsigned. On driver initialization, it
could be decided if the normal function or the one with conversion
(slightly slower) should be used. E.g. the jack driver always does a
conversion like that since it only understands signed data.




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