Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2013 10:51:55 -0600 (CST)
From:      Lawrence Chen <lchen@lhaven.homeip.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        beastie_t@lhaven.homeip.net
Subject:   ports/175835: www/chromium no audio playing from Google Voice
Message-ID:  <201302041651.r14GptgO094708@zen.lhaven.homeip.net>
Resent-Message-ID: <201302041700.r14H01BP099082@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175835
>Category:       ports
>Synopsis:       www/chromium no audio playing from Google Voice
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 04 17:00:01 UTC 2013
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302041651.r14GptgO094708>