Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2011 21:07:50 +0100
From:      Piotr Kudzin <piokud84@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Mplayer2
Message-ID:  <AANLkTi=QCKd=jKUmuiEP6WRWdqc6CMSYmTdO1dn7pwv3@mail.gmail.com>
In-Reply-To: <86aagjav7t.fsf@gmail.com>
References:  <AANLkTik=cRbgYsenjWBWJ33UFAkrxP28GLP6WZYnnhqn@mail.gmail.com> <86aagjav7t.fsf@gmail.com>

index | next in thread | previous in thread | raw e-mail

Thanks for patches Pan Tsu, i'll try them out as soon i'll put FBSD on
this box.
PS. Are You working on official prot of Mplayer2 for FBSD ports tree ??


2011/3/25 Pan Tsu <inyaoo@gmail.com>:
> Piotr Kudzin <piokud84@gmail.com> writes:
>
>> Hi guys
>>
>> Is someone going to port Mplayer2 (http://www.mplayer2.org/
>> http://www.mplayer2.org/comparison.html) to FreeBSD?
>
> FYI, OSS4 support there doesn't work with our OSS.
>
>  http://git.mplayer2.org/mplayer2/commit/?id=91d0d3a
>  http://people.freebsd.org/~ariff/ports/multimedia_mplayer/patch-xzz (different approach)
>
> Apply below diff if you can't change volume without -softvol.
>
> %%
> diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c
> index 82a0dd5..198d9bf 100644
> --- a/libao2/ao_oss.c
> +++ b/libao2/ao_oss.c
> @@ -153,7 +153,7 @@ static int prepause_space;
>  static const char *oss_mixer_device = PATH_DEV_MIXER;
>  static int oss_mixer_channel = SOUND_MIXER_PCM;
>
> -#ifdef SNDCTL_DSP_GETPLAYVOL
> +#if 0
>  static int volume_oss4(ao_control_vol_t *vol, int cmd) {
>     int v;
>
> @@ -201,7 +201,7 @@ static int control(int cmd,void *arg){
>            ao_control_vol_t *vol = (ao_control_vol_t *)arg;
>            int fd, v, devs;
>
> -#ifdef SNDCTL_DSP_GETPLAYVOL
> +#if 0
>         // Try OSS4 first
>         if (volume_oss4(vol, cmd) == CONTROL_OK)
>             return CONTROL_OK;
> %%
>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=QCKd=jKUmuiEP6WRWdqc6CMSYmTdO1dn7pwv3>