From owner-freebsd-ports@FreeBSD.ORG Fri Mar 25 18:52:54 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D48AF106564A for ; Fri, 25 Mar 2011 18:52:54 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 65B298FC17 for ; Fri, 25 Mar 2011 18:52:54 +0000 (UTC) Received: by wyf23 with SMTP id 23so1544636wyf.13 for ; Fri, 25 Mar 2011 11:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=S8AFIbuwnutMCe6YmD9hfXnzmTqJj1+eqOvGs7H0Upo=; b=RQa7/fWtZfw71sw6+2v3ubHCq9k34Ray2sWwkNUYM7uHuuh+9ni/zUZfWIH0KsldS0 /eRNzx2dL5aiX4El2XtmufrIeQoNoem6sBU8G2JSc0ZXWiacC082ozaQk2cfn7FBQKMD G7sLTdoT8ZjFfc0y+00WoIL+U7QKgxHHXDB9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=jeylbC2KxGgbM0IR7Ijhgd2wKiM6d76eDl4zly+UI/dsRjop3KhuViXLXT/rtmbgz6 VMK4eOgst1NM5DWwuaRy689Skq5dRrnfKo8wmyZmFLj0HWCbSPNNszcy9Pqq9s+92gLj GE8WyAQd8aIvzk/WTkkmSXHLpjvNOGj3Q48Hs= Received: by 10.216.213.29 with SMTP id z29mr1053979weo.19.1301079172529; Fri, 25 Mar 2011 11:52:52 -0700 (PDT) Received: from localhost (tor4.anonymizer.ccc.de [80.237.226.74]) by mx.google.com with ESMTPS id t5sm442396wes.9.2011.03.25.11.52.48 (version=SSLv3 cipher=OTHER); Fri, 25 Mar 2011 11:52:51 -0700 (PDT) From: Pan Tsu To: Piotr Kudzin References: Date: Fri, 25 Mar 2011 21:52:38 +0300 In-Reply-To: (Piotr Kudzin's message of "Fri, 25 Mar 2011 18:33:00 +0100") Message-ID: <86aagjav7t.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-ports@freebsd.org Subject: Re: Mplayer2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 18:52:54 -0000 Piotr Kudzin 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; %%