i've looked into the code of mpg321 and libao2 to found out the problem.
em....
after libao2 upgrade, it changes alsa09 to alsa and changes alsa to alsa05
so we have to do the corresponding modify in mpg321's source code...
for example:
we have to change
 driver_id = ao_driver_id("alsa")
to
 driver_id = ao_driver_id("alsa05"),
change
 driver_id = ao_driver_id("alsa09")
to
 driver_id = ao_driver_id("alsa")
change
 strcmp(devicename, "alsa")
to
 strcmp(devicename, "alsa05")
......
......

i modified and compiled the code and it works happily now with my
second sound card.

On 7/15/07, swhe <[EMAIL PROTECTED]> wrote:
it is said that libao2 has changed alsa api after version 0.8.6.
"the 'alsa' device  now uses the 0.9/1.0 api, alsa driver fixes"
is it the reason why we can't choose another sound device with -a option?


On 7/11/07, swhe <[EMAIL PROTECTED]> wrote:
> when i use mpg321 -o alsa09 -a "hw:1,0" foo.mp3
> it exit with "Can't open libao driver with device hw2,0".
> ii  mpg321                            0.2.10.3
> ii  libao2                            0.8.8-3
> ii  libc6                             2.5-11
> ii  libid3tag0                        0.15.1b-10
> ii  libmad0                           0.15.1b-2.1
> ii  zlib1g                            1:1.2.3.3.dfsg-3
>
>
>
> but it works in another machine which has not upgraded for some time:
> ii  mpg321                            0.2.10.3
> ii  libao2                             0.8.6-4
> ii  libc6                              2.5-7
> ii  libid3tag0                         0.15.1b-10
> ii  libmad0                            0.15.1b-2.1
> ii  zlib1g                             1.2.3-13
>
>
> --
>                                                            Yours,
>                                                             swhe
>


--
                                                           Yours,
                                                            swhe



--
                                                          Yours,
                                                           swhe


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to