Re: [AD] Allegro fails to initialize sound under Pulseaudio |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Allegro fails to initialize sound under Pulseaudio
- From: Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx>
- Date: Sun, 21 Oct 2007 03:10:48 -0600
On Tue October 9 2007, Elias Pschernig wrote:
> 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.
>
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
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx