LuckyFIA / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

clicking/ cracking noise from time to time #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running squeezelite on TP-Link MR3020 using OpenWRT and USB-Audio
2. Play Music

What is the expected output? What do you see instead?
clicking/ cracking free music. Instead there was clicking/ cracking noises from 
time to time.

What version of the product are you using? On what operating system?
0.5beta1, OpenWRT Attitude Adjustment (latest)

Please provide any additional information below.
It doesn't seem to be a performance problem, as CPU-Usage is usually around 
30%. Although the systems have limited RAM (32 MB).
What can I do in order to narrow down the problem (e.g. change buffer sizes - 
increase? decrease?)?

Anyways: Great piece of Software - thank you Adrian!

Original issue reported on code.google.com by tutm...@gmail.com on 7 Dec 2012 at 4:16

GoogleCodeExporter commented 9 years ago
it seems to happen random, every 2-5 minutes - while playing a song.

Original comment by tutm...@gmail.com on 7 Dec 2012 at 4:18

GoogleCodeExporter commented 9 years ago
I have an MR3020 and have problems with it too - in my case approx every other 
time the output device is opened I get audio corruption.  I believe this to be 
a problem with alsa rather than squeezelite, but will look at this soon to see 
if I can understand the problem more.

Which openwrt version are you using?

Original comment by trio...@btinternet.com on 20 Dec 2012 at 8:12

GoogleCodeExporter commented 9 years ago
current attitude adjustment.
Also the box refuses to play after being idle overnight. I always have to 
restart squeezelite (done via button-press / udev). There is no error in the 
log in those cases. A plain restart of squeezelite is sufficient. So maybe it 
helps to unbind alsa while not needed?

Original comment by tutm...@gmail.com on 20 Dec 2012 at 8:47

GoogleCodeExporter commented 9 years ago
You can close the alsa device by "turning off" the player from LMS - so either 
the web interface or whatever controller you are using.  Does this help?

Original comment by trio...@btinternet.com on 20 Dec 2012 at 8:56

GoogleCodeExporter commented 9 years ago
Will try tomorrow and tell then.
But even then - it would mean I need to turn the device off in order to play a 
song. Seems strange to me....

Original comment by tutm...@gmail.com on 20 Dec 2012 at 8:57

GoogleCodeExporter commented 9 years ago
Hi - can you confirm if this is still a problem with the latest version?

Original comment by trio...@btinternet.com on 16 Jan 2013 at 10:56

GoogleCodeExporter commented 9 years ago
Hi Adrian, I am using a similiar platform, WR703N, the crackling sound happens 
at playing at higher bitrates such as 192k. bitrate of up to 96k. I am using 
0.9beta8 and attitude adjustment 12.09rc1.

tks,
WW

Original comment by woeiwen....@gmail.com on 21 Jan 2013 at 1:46

GoogleCodeExporter commented 9 years ago
Have you tried increasing the alsa buffer -a 500:4, or turning mmap off?

Do the same files play ok with other applications such as mpd or aplayer?

I have more serious issues on MR3020, but I suspect its because I'm using an 
async dac as the feedback doesn't seem to get processed fast enough in the alsa 
driver layer.  However it does seem to me to work at lower bitrates which leads 
me to suspect something with the hardware/drivers rather than squeezelite 
itself.

Original comment by trio...@btinternet.com on 21 Jan 2013 at 6:36

GoogleCodeExporter commented 9 years ago
I have tried increasing the alsa buffer to 500, turning mmap off gives 
segmentation fault. tried increasing process priority to -19 doesn't work 
either.  I am using an async dac too, usd to i2s is done by Luckit board. maybe 
it is the driver as you have suggested.Have yet to try aplayer or mpd.

Original comment by woeiwen....@gmail.com on 22 Jan 2013 at 3:24

GoogleCodeExporter commented 9 years ago
Sorry I didn't comment until now. After experiencing cracking I switched 
USB-Soundcards. Now I tried to get hold of the Soundcard the cracking appeared 
with, but I cannot get it anymore. So - currently no cracking for me.
Also - turning the player on and off (via Web-Interface) helps reactivating it, 
after it refuses to play (when being idle over night).
It there a way to automatically unbind Alsa when not needed and rebind it again 
when starting to play?

Original comment by tutm...@gmail.com on 23 Jan 2013 at 7:33

GoogleCodeExporter commented 9 years ago
"Turning off" via the web interface should close the output port and hence is 
effectively unbinding from alsa.  Would be interested in debugs from any cases 
when it becomes inactive over night - if closing and reopening the output port 
fixes then I'm not sure this is inside squeezelite, but lets see what the -d 
output=debug shows if you can reproduce?

Original comment by trio...@btinternet.com on 23 Jan 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Oh - I cannot build squeezelite for my platform - don't have any libmpg123. How 
can I disable support for it?

Original comment by tutm...@gmail.com on 1 Feb 2013 at 7:52

GoogleCodeExporter commented 9 years ago
you only need the include file to build it.  Otherwise remove that file from 
the makefile and references to it.

Original comment by trio...@btinternet.com on 1 Feb 2013 at 8:02

GoogleCodeExporter commented 9 years ago
Just right now Squeezelite didn't play. Instead after about a minute of silence 
it started making strange machine noises. I turned the player off via 
Interface. And started play again after some seconds which worked.
See attached log.

Original comment by tutm...@gmail.com on 4 Feb 2013 at 5:52

Attachments:

GoogleCodeExporter commented 9 years ago
I have not tried my MR3020 recently but had seen a problem with the alsa driver 
which meant that approx every other opening of the output device has 
distortion.  I believe this is a bug within the openwrt alsa somewhere.  Does 
stopping and restarting squeezelite help as well as disabling and reenabling 
the output from the web interface?

Original comment by trio...@btinternet.com on 4 Feb 2013 at 9:15

GoogleCodeExporter commented 9 years ago
usually yes. But'll look into it in the next days.

Original comment by tutm...@gmail.com on 4 Feb 2013 at 9:17

GoogleCodeExporter commented 9 years ago
I reopened a genuine Issue (31) for this.

Original comment by tutm...@gmail.com on 18 Jun 2013 at 6:02

GoogleCodeExporter commented 9 years ago
closing as covered by issue #31

Original comment by trio...@btinternet.com on 9 Jul 2013 at 6:45

GoogleCodeExporter commented 9 years ago
I've tackled this poping/clicking by patching the wifi-driver,

please review 
http://www.vincentgijsen.nl/fixing-poping-noise-on-tp-link-tl-wr703n-router/ 
which is more detailed regarding the fix

Original comment by matrasce...@gmail.com on 23 Dec 2013 at 10:29