From owner-freebsd-ports@FreeBSD.ORG Fri Mar 6 20:31:59 2009 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 8258A106564A; Fri, 6 Mar 2009 20:31:59 +0000 (UTC) (envelope-from a.heider@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id 7D4DF8FC20; Fri, 6 Mar 2009 20:31:58 +0000 (UTC) (envelope-from a.heider@gmail.com) Received: by fk-out-0910.google.com with SMTP id f40so251406fka.11 for ; Fri, 06 Mar 2009 12:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ach9ss+sA4Ks1b+HqS+wiwdtblklS99FOUzNja8rJEk=; b=jlH3PCLza3AIRXtjCpO4ggEHGWcFjkMcLQzCxwhCL00/c/BbMcfivmNv2ju4745B5k WeFeDkIjtAFLVo7f9timcYb76zSIRWUiu6rpu/N2WvgyA0kdDQx/BCzEqT3SvD/gvY6t GXRPiUhv28eA+vafK57rdehxT+4ZxI+nhn2P4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=B6vD0NKSmJLKpp3OKLHvTpapbiYLjjeV1tzKATYxsc3glnH6q+QlEduVLLup7Z/JcK CVjpZePC6q8Hxr7S9W0x3ZT+M/73nUackxQPyzpQPGEUIJc+egJ66v7gydFOx1u6zL2q /Kof5fzfuZTiztffor0PYMg1vkrvg6xMz4pZM= MIME-Version: 1.0 Received: by 10.103.117.8 with SMTP id u8mr1238387mum.123.1236371517456; Fri, 06 Mar 2009 12:31:57 -0800 (PST) In-Reply-To: <20090303232459.GB1091@medusa.sysfault.org> References: <20090303232459.GB1091@medusa.sysfault.org> Date: Fri, 6 Mar 2009 21:31:57 +0100 Message-ID: From: Andre Heider To: Marcus von Appen , freebsd-ports@freebsd.org Content-Type: multipart/mixed; boundary=0016e6570b861bc2580464792d21 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: SDL / Pulseaudio 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, 06 Mar 2009 20:31:59 -0000 --0016e6570b861bc2580464792d21 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Mar 4, 2009 at 12:24 AM, Marcus von Appen wrote: > On, Tue Mar 03, 2009, Andre Heider wrote: > >> Hi list, >> >> devel/sdl12 doesn't pick up pulseaudio, no matter if I select it in >> "make config" or not. I didn't find the time to dig further, but I >> noticed 2 bits: >> - the dependency to libpulse-simple.so.0 isn't set in the Makefile > > I missed that one, sorry. It will be fixed soon. > >> - if I run ./configure without args, it correctly finds the lib and >> compiles the SDL audio driver for it >> >> Is this a known issue or am I missing some other port? > > For some weird reason the --enable-pulseaudio switch will disable > PulseAudio support in 1.2.13. That'll be fixed as well. > > Thanks for noticing and notifying :-). > > Regards > Marcus > Hi Marcus, thanks for the compile fix, it builds fine now with pulseaudio support :) Unfortunately there're some runtime problems with this SDL driver: 1) setting the envvar PULSE_SERVER to forward the stream to another box results in 'E: proplist.c: Assertion 'p' failed at pulse/proplist.c:295, function pa_proplist_contains(). Aborting.' (thats from the SDL app using pulseaudio). paplay works just fine. 2) inefficency, using not used envvars like PASERVER, etc I fixed 1) with static char *get_progname(void) { char *progname = NULL; -#ifdef __LINUX__ +#if defined(__LINUX__) || defined (__FreeBSD__) FILE *fp; static char temp[BUFSIZ]; This obviously doesn't work for other platforms, but at least its fine on freebsd for me. Streaming to a Linux pulseaudio server works now :) for 2) see http://bugzilla.libsdl.org/show_bug.cgi?id=698 I applied 2) (without the additional compatibility path, can't test that and there's at least an #include missing) and combined it with my oneliner change. Attached you'll find the results, ready to throw at files/ Regards, Andre --0016e6570b861bc2580464792d21--