[Solved] Flash player audio distortion

Archived topics about LMDE 1
Forum rules
Level 5
Level 5
Posts: 500
Joined: Thu Nov 27, 2008 9:38 pm

Re: Flash player audio distortion

Postby rdonnelly » Sun Jul 03, 2011 7:45 pm

All right! Method one fixed it for me as well. Installing the 32 bit flash did not work, starting the browser with the Cli command was kind of screwy and asked if I wanted FF to be set as default, even though it already is?
Using Mint since 2008
*Mint 18.2 KDE
*ASUS 970 PRO GAMING/AURA AM3+ AMD 970 + SB 950 SATA 6Gb/s USB 3.1
*AMD FX-8370 with AMD Wraith cooler Vishera 8-Core 4.0 GHz (4.3 GHz Turbo)
*G.SKILL Ripjaws X Series 16GB DDR3 SDRAM

Level 1
Level 1
Posts: 2
Joined: Tue Jul 05, 2011 9:42 pm

Re: Flash player audio distortion

Postby day-vid » Tue Jul 05, 2011 9:54 pm

On LMDE x64, Fix 1 worked for me, but while attempting the major upgrade of June 22 a libpam error stalled the upgrade itself. I removed the line from the /etc/ld.so.preload file and the upgrade proceeded flawlessly. I then had to follow xircon's advice above in order to restore proper sound.

thanks for the helpful posts!

Level 1
Level 1
Posts: 2
Joined: Sun Jan 23, 2011 8:50 am

Re: Flash player audio distortion

Postby jonas.bardino » Sat Jul 09, 2011 5:42 am

Thanks for sharing the solutions!

This looks like a flash specific bug to me, so I would rather use the second solution of only using the workaround in the browser until a fixed flash version is released.
I made a simple shell script to do just that:

Code: Select all

# Simple wrapper to fix problems with distorted/crackling/choppy sound when
# playing flash clips with flash plugin from a browser.
# You can test with e.g. the myspace player by running
# /path/to/this/script firefox http://www.myspace.com/igotyouontape
# and chosing one of the play buttons

# Original location
# New location
# Try each wrapper location in turn and warn user if neither is there
if [ -e "$MEMCPYWRAP" ]; then
elif [ -e "$MEMCPYWRAPARCH" ]; then
    echo "no memcpy wrapper found - sure this is a 64-bit flash problem?"
exec $@

You can paste it to a new file called, say, flash-audio-workaround.sh in your home directory and make it executable with

Code: Select all

chmod 755 ~/flash-audio-workaround.sh

Then you can use the command

Code: Select all

~/flash-audio-workaround.sh firefox

to start a firefox browser with the workaround enabled.
Of course you can replace firefox with another browser command like e.g. chromium and use the same command in a desktop/menu/keyboard shortcut to make it easy to use. This method does not touch other applications and is completely independent of package updates.

Cheers, Jonas

Level 1
Level 1
Posts: 7
Joined: Wed Jul 13, 2011 11:46 am

Re: Flash player audio distortion

Postby Darkraven » Wed Jul 13, 2011 12:10 pm

Hi all,

I had the same problem and finally the solution that turned out to work for me was hozomean's solution 2. Just for the record and in case it might be useful for someone else I report the steps I followed:

1) I tried the solution as given by jonas.bardino but it didn't work.

2) In synaptic I searched "flashplugin" and four packages were found:


The first and the last were installed --the last is the one hozomean was referring too--. When I removed mint-flashplugin-x64 it disappeared completely from synaptic so I guess it was kind of an obsolete package (?). Reading the description of each of the three remaining packages one sees that flashplugin-nonfree downloads the software from Adobe while the others, which are incompatible with it, are the meta-package for Adobe Flash plugin and the package for 64-bit. Anyhow I left mint-flashplugin and mint-flashpluguin-square installed.

3) Since the problem persisted I just went for hozomean's second solution as described by him/herself. It worked smoothly.

So now the question is: whenever a new update of flashplugin is available should I expect it to work and I can revert the solution applied now or should I stick to it? Thanks!

Level 1
Level 1
Posts: 28
Joined: Thu Apr 29, 2010 10:26 am

Re: Flash player audio distortion

Postby wil » Thu Jul 14, 2011 10:05 am

Flash 11 (BETA) has been released, with 64bit Linux support. Works "more better" with LMDE64.

http://www.reddit.com/r/linux/comments/ ... t_amongst/

You can get it here:
http://labs.adobe.com/technologies/flas ... hplayer11/

Videos play better, and GMail in Chrome doesn't hang in other (than GNOME) window managers.

Hopefully it'll be in the repository soon. :mrgreen:

User avatar
Level 5
Level 5
Posts: 770
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: Flash player audio distortion

Postby xircon » Thu Jul 14, 2011 11:30 am

Nice one, thanks for the heads up.
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"

Level 2
Level 2
Posts: 63
Joined: Wed Jun 15, 2011 12:27 pm

Re: [Solved] Flash player audio distortion

Postby rjs » Thu Jul 14, 2011 12:24 pm

hozomean wrote:Here is a short summary of my adventures with flash on XFCE LMDE 64bit (though I'm certain this is not specific to the XFCE version, but to all debian 64bit systems):

First of all, there are multiple flash players in the repos. For this fix, I am using mint-flashplugin-x64.

With all of the 64bit versions of the flash plugin, including the "Square" version downloaded from adobe, I get incredibly annoying distortion on 90% of flash websites I go to.

I was able to use the solution of downloading the 32-bit version and installing it using nspluginwrapper. However, with this solution flash does not play nicely with pulseaudio, which means if you're listening to music and simultaneously try to visit a youtube video, flash will not have any audio until you kill any other app using the soundcard.

Ultimately I discovered via this post on the debian forums which basically says that there was a change to eglibc that modifies how a memcpy() call works that only affects amd64, which evidently flash is affected by. So, until flash is updated, I have 2 (relatively) painless fixes that make flash audio work without distortion and let it coexist peacefully with other audio apps.

The first is easier, but could potentially affect other apps on the system (though from my understanding of what I've read these effects would be positive in that it would fix memory issues in other apps that use that call improperly). The second solution won't survive updates, but will only apply to the browsers. They are respectively labeled 1 and 2 below.

1. edit /etc/ld.so.preload as root (this file does not exist on a stock version of LMDE). add this single line:

This will apply the patch system-wide.

2. Each web browser on your system is started by a bash script of the same name in /usr/bin (if you don't know what this means, fear not). You can add environment variables to these bash scripts like defining exactly this type of library preload. so if you edit, say, /usr/bin/firefox as root (or via sudo), you just need to add a line like this:

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so

toward the top of the file (the export probably isn't necessary in all cases, but just in case). I've tested this with iceweasel, firefox, opera, and chromium. All now produce flawless sound and the flashplayer can play at the same time as other apps if you've setup pulseaudio to do so.

Hope this helps people to not have to go through all the potential fixes I did!

Good write there hozomean. Thank you.
"LMDE - Linux Mint Debian Edition - Debian, with a touch of elegance." -rjs

Level 1
Level 1
Posts: 27
Joined: Sun May 15, 2011 12:00 am

Re: Flash player audio distortion

Postby scottlinux » Thu Jul 14, 2011 11:26 pm

Flash Player 11 is working with no distortion for me. No work around required. yay!

User avatar
Level 6
Level 6
Posts: 1304
Joined: Thu May 19, 2011 1:32 pm
Location: USA

Re: Flash player audio distortion

Postby wyrdoak » Thu Jul 14, 2011 11:56 pm

Flash Player 11 it working for me in both Firefox and Chrome. I almost don't know what to do now since I don't have to decide what I'm going to do before I pick a browser. :wink:
-Dell Mini Inspiron 910 Netbook-Atom CPU-N270-1.60ghz; 16gbs mini ePCI PATA SSD
RAM- 1gbs-(LinixMint-17.1: KDE)

Level 1
Level 1
Posts: 19
Joined: Sun Dec 05, 2010 10:49 am

Re: Flash player audio distortion

Postby o_unico » Sat Jul 16, 2011 10:58 pm

hozomean second solution worked here. Thanks.

User avatar
Level 3
Level 3
Posts: 115
Joined: Thu Nov 25, 2010 4:12 am

Re: Flash player audio distortion

Postby Dr.m0x » Mon Jul 18, 2011 5:31 am

The latest x64 flash player resolves the issue. It is not in the repos yet but if one downloads it directly from adobe and drops it into ones mozilla plugin directory things become normal once again.

Sent from my Desire HD using Tapatalk

User avatar
Level 1
Level 1
Posts: 5
Joined: Wed Oct 13, 2010 4:37 pm

Re: Flash player audio distortion

Postby anonbeat » Wed Dec 14, 2011 4:17 am

jack.herbert wrote:I had the same sound issue on LMDE x64 with Firefox4 x64 and Opera, but not Chromium. Go figure
Cheers for the links. It all seems a bit complicated so I just
downloaded the 32bit version of flash http://get.adobe.com/flashplayer/,
extracted libflashplayer.so into /usr/lib/mozilla/plugins (being root and all)
Now the sound is okay.

Thanks that worked for me!

Return to “Archive”