eturn-Path: <kaare@slettnes.org>
Received: from kolab.revolutionlinux.com ([unix socket]) by
        kolab.revolutionlinux.com (Cyrus
v2.2.13-Mandriva-RPM-2.2.13-1.1.101mdk)
        with LMTPA; Fri, 26 Jan 2007 00:32:45 -0500
X-Sieve: CMU Sieve 2.2
Received: from localhost (localhost [127.0.0.1]) by
        kolab.revolutionlinux.com (Postfix) with ESMTP id B2F98ABC005 for
        <jmdault@revolutionlinux.com>; Fri, 26 Jan 2007 00:32:45 -0500 (EST)
Received: from kolab.revolutionlinux.com ([127.0.0.1]) by localhost
        (kolab.revolutionlinux.com [192.168.2.224]) (amavisd-new, port
10025) with
        LMTP id 14025-02-13 for <jmdault@revolutionlinux.com>; Fri, 26 Jan
2007
        00:32:44 -0500 (EST)
Received: from smtpin.revolutionlinux.com (smtpin.revolutionlinux.com
        [172.31.25.213]) by kolab.revolutionlinux.com (Postfix) with ESMTP
id
        ED62EABC002 for <jmdault@revolutionlinux.com>; Fri, 26 Jan 2007
00:32:44
        -0500 (EST)
Received: from localhost (smtpin.revolutionlinux.com [172.31.25.213]) by
        smtpin.revolutionlinux.com (Postfix) with ESMTP id EC5D8DF09 for
        <jmdault@revolutionlinux.com>; Fri, 26 Jan 2007 00:32:44 -0500 (EST)
Received: from smtpin.revolutionlinux.com ([172.31.25.213]) by localhost
        (smtpin.revolutionlinux.com [172.31.25.213]) (amavisd-new, port
10025) with
        ESMTP id 06081-09 for <jmdault@revolutionlinux.com>; Fri, 26 Jan
2007
        00:32:37 -0500 (EST)
Received: from smtp.easydns.com (smtp.easydns.com [205.210.42.52]) by
        smtpin.revolutionlinux.com (Postfix) with ESMTP id 923E1DEBD for
        <jmdault@revolutionlinux.com>; Fri, 26 Jan 2007 00:32:37 -0500 (EST)
X-Greylist: Passed host: 129.242.5.252
Received: from mux2.uit.no (mux2.uit.no [129.242.5.252]) by
        smtp.easydns.com (Postfix) with ESMTP id 23E914E9D2 for
        <jmdault@revolutionlinux.com>; Fri, 26 Jan 2007 00:32:36 -0500 (EST)
Received: from wert.td.org.uit.no (Debian-exim@wert.td.org.uit.no
        [129.242.219.51]) by mux2.uit.no (8.13.8/8.13.6/Mux) with ESMTP id
        l0Q5WWSH039529 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256
        verify=NO)
        for <jmdault@revolutionlinux.com>; Fri, 26 Jan 2007 06:32:32 +0100
        (CET)
Received: from kaare by wert.td.org.uit.no with local (Exim 4.63)
        (envelope-from <kaare@slettnes.org>) id 1HAJhN-0004rT-4B for
        jmdault@revolutionlinux.com; Fri, 26 Jan 2007 06:32:29 +0100
Date: Fri, 26 Jan 2007 06:32:28 +0100
To: jmdault@revolutionlinux.com
Subject: pulseaudio support in flashsupport.c
Message-ID: <20070126053228.GA6170@slettnes.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.13 (2006-08-11)
From: Kaare Slettnes <kaare@slettnes.org>
X-Virus-Scanned: : ok
X-Virus-Scanned: Debian amavisd-new at smtpin.revolutionlinux.com
X-Virus-Scanned: by amavisd-new at revolutionlinux.com
X-Spam-Status: No, hits=-2.599 tagged_above=-999 required=4.9 tests=BAYES_00
X-Spam-Score: -2.599
X-Spam-Level: 
X-Evolution-Source: imap://jmdault@kolab.revolutionlinux.com/


Thank you so much for this code. Now i'm finally able to mix flash
content to other audio through pulseaudio. Seeooweet.

But the real reason for this mail is a minor bug in your pulseaudio
detection code.  It looks for the file "/tmp/pulse-<user>/native".
This file doesn't exist in in debian (sid).  I have the folder
"/tmp/pulse-<user>" but that's it.

As a quick fix I just removed the line

===================================================================
--- flashsupport.c      (revision 2254)
+++ flashsupport.c      (working copy)
@@ -331,7 +331,6 @@
        if((tmpenv=getenv("USER"))!=NULL) {
                strcpy(tmpstr,"/tmp/pulse-");
                strcat(tmpstr,tmpenv);
-               strcat(tmpstr,"/native");
                if(!stat(tmpstr,&buf)) {
                        if(audiodebug) fprintf( stderr, "PulseAudio socket
found\n");
                        audiodrivers = audiodrivers | AUDIO_PULSE;
===================================================================

without knowing if this is the correct way to detect a working pulse
audio instance.  But it works.

Just thought I'd let you know.

My spec:

Linux: 2.6.18-3-k7
Pulseaudio: 0.9.5-5
Firefox/Iceweasel: 2.0.0.1
libflashplayer.so: 9.0.31.0
soundcard: nVidia nForce Audio (onboard Asus A7N8X)

-- 

    K?re Slettnes
