Return-Path: <SRS0=Gyes=GW=arcor.de=peter.heckert@srs.kundenserver.de>
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; Sat, 13 Jan 2007 17:44:17 -0500
X-Sieve: CMU Sieve 2.2
Received: from localhost (localhost [127.0.0.1]) by
        kolab.revolutionlinux.com (Postfix) with ESMTP id CB5C4ABC005 for
        <jmdault@revolutionlinux.com>; Sat, 13 Jan 2007 17:44:17 -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 13375-01 for <jmdault@revolutionlinux.com>; Sat, 13 Jan 2007
        17:44:16 -0500 (EST)
Received: from smtpin.revolutionlinux.com (smtpin.revolutionlinux.com
        [172.31.25.213]) by kolab.revolutionlinux.com (Postfix) with ESMTP
id
        C67E5ABC002 for <jmdault@revolutionlinux.com>; Sat, 13 Jan 2007
17:44:16
        -0500 (EST)
X-Greylist: delayed 302 seconds by postgrey-1.24 at
        smtpin.revolutionlinux.com; Sat, 13 Jan 2007 17:44:16 EST
Received: from moutng.kundenserver.de (moutng.kundenserver.de
        [212.227.126.179]) by smtpin.revolutionlinux.com (Postfix) with
ESMTP id
        5285BDFD1 for <jmdault@revolutionlinux.com>; Sat, 13 Jan 2007
17:44:16
        -0500 (EST)
Received: from [217.228.162.219] (helo=[192.168.1.0]) by
        mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id
        0MKwh2-1H5rWr1Jcf-0004f0; Sat, 13 Jan 2007 23:39:13 +0100
Message-ID: <45A95F8E.4040105@arcor.de>
Date: Sat, 13 Jan 2007 23:39:10 +0100
From: Peter Heckert <peter.heckert@arcor.de>
User-Agent: Thunderbird 1.5.0.9 (X11/20061219)
MIME-Version: 1.0
To: jmdault@revolutionlinux.com
Subject: bugfix for flashsupport.c
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: kundenserver.de abuse@kundenserver.de
        login:0d18ea868c35e482d8395c59e9349d87
X-Provags-ID2:

V01U2FsdGVkX1/bp8nZ3PCiDMN7P3hQv7qVlqRd/VY+qaKWuxUixxYVHHYYJcD9QJJz/s0ZWj6hG1cOmrl3S81vlnXpUhpwpNGv72XF92v3DEZh61WcSa/u+lC+3zmgLDJA7X/Ay1R9ues=
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/

Hello,

I had problems with occasionally stuttering sound and I tried to use 
your libflashsupport.
However, that did not cure the problem.
It requires a software modification in esd_thread:

  for(;;) {
        FPI_SoundOutput_FillBuffer(ptr,buffer,4096);
        len = 4096;
        while ( len > 0 ) {
Line 1219-->>     written = write(instance->esd_sock, buffer, len);
            if ( written >= 0 ) {
                len -= written;

Line 1219 should read:
            written = write(instance->esd_sock, buffer+4096-len, len);

I made this modification and tested it here.
The sound runs smoothly now, even then, when the video stutters due to 
high CPU load.

Hope this hint is useful.
In any case, thank you very much for your work.

kind regards,

Peter

