[MPlayer-dev-eng] [PATCH] More ao_alsa.c fixes

eviv bulgroz ebulgroz at yahoo.com
Wed Jul 14 01:01:51 CEST 2004


Reimar Döffinger wrote:

> Hi,
>
>> the attached patch should fix most of the mess in ao_alsa.c. The same 
>> problems exist in ao_alsa1x.c and ao_alsa9.c as well, anyone who 
>> wants can port the patch to them.
>> It also changes the way you specify the alsa device, allowing to set 
>> e.g. plug:default as device.
>> There are probably some other parts that need explanation, but I'm 
>> too tired right now... Just ask if you have any questions.
>> Please test and check this patch.
>
>
> joyping applied with changes.
>
... and bugs:
    if (strcmp(str_status,"running"))
      mp_msg(MSGT_AO,MSGL_V,"alsa-space: free space = %i, status=%p, %s 
--\n", ret, status, str_status);
Means the opposite of:
    if (snd_pcm_status_get_state(status) == SND_PCM_STATE_RUNNING)
      mp_msg(MSGT_AO,MSGL_V,"alsa-space: free space = %i, status=%i, %s 
--\n", ret, status, str_status);

Try to use -v and get zillions of "running" messages now
alsa-space: free space = 11680, status=-18625024, running --2.1% 118 0 0%
alsa-space: free space = 8544, status=-18625024, running -- 2.1% 119 0 0%
alsa-space: free space = 7872, status=-18625024, running -- 2.1% 120 0 0%
alsa-space: free space = 15936, status=-18625024, running --2.1% 121 0 0%




More information about the MPlayer-dev-eng mailing list