On Wed, Nov 09, 2011 at 03:14:21PM +0100, Remco wrote:
>
> The highlighted code at the bottom of this mail contains comparisons like
> this: strncmp("snd", str, len) == 0
>
Yes, indeed this part of the code is wrong, grr... second time i do
the very same mistake; thanks
> sun, sun: or sun:0 for the device and all three of them will play
> sound. I'd expect only sun:0 to work.
I agree, the number is mandatory.
> Device aucat hasn't got this
> problem. I haven't tracked this down but I suspect some additional
> checking is going on outside the sio_open function.
This is one is somewhat intentional. We'll keep the device number
optional until aucat is enabled by default. This is a quick hack to
keep the /dev/audio symlink working for now.
> P.S.:
> I added a comparison function sio_is_type. But I didn't know how to share it
> properly between sio.c and mio.c so my solution might look a bit quick and
> dirty. (especially the extern sio_is_type declaration in mio.c)
>
thanks
-- Alexandre