From lchen@zen.lhaven.homeip.net  Mon Feb  4 16:52:09 2013
Return-Path: <lchen@zen.lhaven.homeip.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 51AD2D7D
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Feb 2013 16:52:09 +0000 (UTC)
	(envelope-from lchen@zen.lhaven.homeip.net)
Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66])
	by mx1.freebsd.org (Postfix) with ESMTP id 26DC794E
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Feb 2013 16:52:08 +0000 (UTC)
Received: from ip70-179-135-19.fv.ks.cox.net ([70.179.135.19] helo=zen.lhaven.homeip.net)
	by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.72)
	(envelope-from <lchen@zen.lhaven.homeip.net>)
	id 1U2PH0-000LLD-9h
	for FreeBSD-gnats-submit@freebsd.org; Mon, 04 Feb 2013 16:52:02 +0000
Received: from zen.lhaven.homeip.net (localhost [127.0.0.1])
	by zen.lhaven.homeip.net (8.14.6/8.14.5) with ESMTP id r14GptCV094709;
	Mon, 4 Feb 2013 10:51:55 -0600 (CST)
	(envelope-from lchen@zen.lhaven.homeip.net)
Received: (from lchen@localhost)
	by zen.lhaven.homeip.net (8.14.6/8.14.5/Submit) id r14GptgO094708;
	Mon, 4 Feb 2013 10:51:55 -0600 (CST)
	(envelope-from lchen)
Message-Id: <201302041651.r14GptgO094708@zen.lhaven.homeip.net>
Date: Mon, 4 Feb 2013 10:51:55 -0600 (CST)
From: Lawrence Chen <lchen@zen.lhaven.homeip.net>
Reply-To: Lawrence Chen <beastie@tardisi.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: beastie_t@zen.lhaven.homeip.net
Subject: www/chromium no audio playing from Google Voice
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         175835
>Category:       ports
>Synopsis:       www/chromium no audio playing from Google Voice
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    chromium
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 04 17:00:01 UTC 2013
>Closed-Date:    Mon Feb 25 09:29:12 UTC 2013
>Last-Modified:  Mon Feb 25 09:29:12 UTC 2013
>Originator:     Lawrence Chen
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD zen.lhaven.homeip.net 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	I haven't been able to hear my messages on Google Voice since
	PULSEAUDIO had stopped building.

	However, after what I believe is the correct fix to get PULSEAUDIO to
	build. I still am not getting audio.

	Was working up to 23.x

>How-To-Repeat:
	Go to google voice, and play any voicemail.  Expect to hear voicemail.
>Fix:

	Attached is my patch to get PULSEAUDIO to build.  But, it didn't
	resolve my Google Voice problem.

--- patch-media__audio__pulse__pulse_output.cc begins here ---
--- media/audio/pulse/pulse_output.cc.orig	2013-01-25 20:01:32.000000000 -0600
+++ media/audio/pulse/pulse_output.cc	2013-02-03 22:11:50.838136325 -0600
@@ -8,7 +8,7 @@
 #include "base/message_loop.h"
 #include "media/audio/audio_parameters.h"
 #include "media/audio/audio_util.h"
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
 #include "media/audio/linux/audio_manager_linux.h"
 #elif defined(OS_OPENBSD)
 #include "media/audio/openbsd/audio_manager_openbsd.h"
@@ -86,7 +86,7 @@
 
   // All channel maps have the same size array of channel positions.
   for (unsigned int channel = 0; channel != CHANNELS_MAX; ++channel) {
-    int channel_position = kChannelOrderings[channel_layout][channel];
+    int channel_position = ChannelOrder(channel_layout,static_cast<Channels>(channel));
     if (channel_position > -1) {
       channel_map.map[channel_position] = ChromiumToPAChannelPosition(
           static_cast<Channels>(channel));
@@ -376,7 +376,7 @@
     int chunk_size;
 
     // Stop writing if there is no more data available.
-    if (!client_buffer_->GetCurrentChunk(&chunk, &chunk_size))
+    if (!client_buffer_->GetCurrentChunk(&chunk, (int*) &chunk_size))
       break;
 
     // Write data to stream.
--- patch-media__audio__pulse__pulse_output.cc ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-chromium 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Feb 4 17:00:13 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175835 
Responsible-Changed-From-To: freebsd-chromium->chromium 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Feb 9 07:24:47 UTC 2013 
Responsible-Changed-Why:  
Canonicalize assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175835 
State-Changed-From-To: open->feedback 
State-Changed-By: rene 
State-Changed-When: Sat Feb 23 01:02:33 UTC 2013 
State-Changed-Why:  
Should be fixed in version 25, can you verify? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175835 

From: The BSD Dreamer <beastie@tardisi.com>
To: bug-followup@FreeBSD.org, beastie@tardisi.com
Cc:  
Subject: Re: ports/175835: www/chromium no audio playing from Google Voice
Date: Sun, 24 Feb 2013 22:44:34 -0600

 Yes, it is working now.
State-Changed-From-To: feedback->closed 
State-Changed-By: rene 
State-Changed-When: Mon Feb 25 09:28:26 UTC 2013 
State-Changed-Why:  
Works for submitter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175835 
>Unformatted:
