bitgapp / eqMac

macOS System-wide Audio Equalizer & Volume Mixer 🎧
https://eqmac.app
Apache License 2.0
5.68k stars 334 forks source link

Sounds degrade after 30 minutes playing aprox. #36

Closed arcovoltaico closed 4 years ago

arcovoltaico commented 7 years ago

On my iMac (last macOs everything updated) using HDMI as output, the sound is increasingly corrupted after about 30 minutes playing music through the eqMac2, it seems a memory/buffer problem. Let me know if I can send you anything from the activity monitor console or so. Thanks!

lsnch commented 7 years ago

I'm currently using Soundflower + AU Lab while looking for alternatives. The reason is also sound degradation after some time running. I read somewhere that the problem is in Soundflower. Seeing as eqMac2 also uses Soundflower driver there may be a connection.

nodeful commented 7 years ago

I very rarely have this happen to me, but did happen a couple of times. Honestly, I don't actually completely understand a lot of processing logic that is happening. I just put the blocks together. I will try to research a bit more but not promising a swift result. Sorry about that

nebm51 commented 7 years ago

Hi, this issue appears to be pretty constant to me. With external USB audio card after sometime sound starts to be distorted. Switching to other device (which will automatically switches back to eqMac device) solves the problem for a while, but it comes back.

Please, let me know if you would need some extra information, which would help in debugging. Thanks!

arcovoltaico commented 7 years ago

Maybe an update including an automatic "driver reconnect" as a workaround each 10 minutes could "fix" it, if doing that does not mute the sound for a while ....

thijmenc commented 7 years ago

I've got the same problem as Nebm51. I'm using an external usb interface and I thought my interface was defect. I also use 10.12.6 and I did try to uninstall eqMac2 but the problem stayed..

The distorted sounds keeps getting back more often and often and I hope you'll find the problem because I can't use my external monitors at the moment because of the bug..

Lemmings84 commented 7 years ago

Hey, I have the same problem, as of now, only when playing from spotify. Im using hdmi as output directly from a mac mini, mac os sierra. after I would say approx 30 - 60 minutes the audio starts to sound increasingly distorted in a buffer underrun like manner. Going to mac os sound settings and reconnecting audio output to the hdmi TV resolves the issue for some time.

But there is also an other issue, which may or may not be related. It gets noticeable after around 15 mins after resetting audio output, which is increasingly lag as time goes! its noticeable in players like itunes when pressing play pause. But naturally even more so when watching movies on netflix or pleimo. The sound gets increasingly out of sync as time goes, rewinding the movie, refreshing the page, changing EQ setting does nothing. Once again resetting the audio output in settings fixes the issue temporarily for some time. if I do not reset the audio output for a long time the delay can get as long as a whole sentence, even a short movie scene.

MoraFermi commented 7 years ago

I seem to have found a workaround for the issue.

If I use Audio MIDI devices app to enable "Drift Correction" for eqMac device, the distortion does not appear. If I disable it (which is the default state), it starts within 10 minutes and becomes really heavy within 30. Please check this screenshot.

nodeful commented 7 years ago

@MoraFermi this is a very good find. I will try to enable this programmatically when I create the device. Will include it in the next update

nodeful commented 7 years ago

fixed in 848da5f

nebm51 commented 7 years ago

Great find @MoraFermi! Hope this will help to fix part of the issue. I've tried to do this on my setup, but sound still degrades after some time of usage.

dan-djorgi commented 7 years ago

I have the same problem as nebm51. Using an external USB audio interface (Focusrite Saffire), audio starts to crackle after just a couple minutes and gets more and more distorted. Selecting the USB audio interface (or any other output) in the Apple volume menubar icon (although eqMac2 stays selected) solves the issue for just another 3-5 minutes. I also tried the "Drift Correction" option in "Audio MIDI Setup" and different Sampling Rates for eqMac2 and my audio interface already, which doesn't solve the issue either.

bd6f308d-9205-4dfb-b1e7-66338c111542

nodeful commented 6 years ago

Build 2.1 has just been released. You can download it from https://bitgapp.com/eqmac Could you please update and report if the issue is still relevant. Thanks :)

nebm51 commented 6 years ago

@romankisil Hi,I've tried new build. Problem is still there.

jnc-nj commented 6 years ago

@romankisil Been testing with my ATH-DSR9BT bluetooth headset. Works fine with bluetooth but problem occurs when headset is connected via USB.

Satori83 commented 6 years ago

Same here, tried also using a FocusRite...still same problem. Heres what I have to do every 30 mins or so... screen capture on 2017-12-01 at 17-08-15

nodeful commented 6 years ago

@Satori83 have you tried setting both eqMac2 device and your Scarlet to the same sampling rate? Like 44kHz for instance. You can do that in your Audio MIDI Setup on your Mac

chrisgross commented 6 years ago

I'm having this same problem with my USB DAC. Brand new High Sierra install with default settings. I will try lining up the sampling rates to see if this makes a difference.

Satori83 commented 6 years ago

Yes I did try the sampling rates, it didnt help. For now I just started running it through my mac without the FocusRite.

Thanks,Scott Foster

Founder / Project Coordinator Office: 215-478-8171 ext.1This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Satori Design is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.

On Wed, Dec 13, 2017 4:15 PM, Chris Gross notifications@github.com wrote: I'm having this same problem with my USB DAC. Brand new High Sierra install with default settings. I will try lining up the sampling rates to see if this makes a difference.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

llgcode commented 6 years ago

Hi Ali, Just fyi. Sorry I didn't use eqmac2 but I have the same problem using USB soundcard focusrite and an IMac 2009 updated to last high sierra update.

cmbernard333 commented 6 years ago

I am also seeing this issue with a Dragonfly Black 1.5 using eqmac2. Its unbearable. Anyway to fix this?

jimgoings commented 6 years ago

Same issue using a FIIO E10K USB DAC/AMP. If I change the output device using the eqMac2 dropdown, and switch back it will be fixed for another 10 minutes or so.

danJGW commented 6 years ago

Same problem here and it's sending me mad. I'm trying to compose and record music but it's impossible at the moment. Focusrite 6i6 via USB and like others it starts crapping out after 5/10 minutes until I change a setting then it's ok for a bit and then it happens again. I was so sure it would be a driver issue that in the end I did a clean install of High Sierra but upset that it's happening again!

VitosX commented 6 years ago

I have the same issue both in eqMac2 and when using AU Lab from Apple. It happens with USB audio output (Thunderbolt Display audio and MARA 22 XTU device). I haven't checked if builtin audio is affected too.

sathia-musso commented 6 years ago

Hi, I have the same issue, I'm using audioengine USB dac, it starts fine and then audio becomes really annoying. I'm available to help.

same thing happened with Sound Syphon + Au Lab.

nodeful commented 6 years ago

First of all, I would like to apologize for the lack of communication and responses to the current issue and all other issues in general. I have made a conscious decision to focus most of my free time and focus on developing a more modern and new version of "eqMac". This means that I can't spend too much time looking back at old codebase and trying to make every user happy. This was the main reason I made this repository open-source, in hopes that other developers might help to sort out some issues and iron out all the bugs. Unfortunately, there are very few developers that are proficient in Core Audio and Objective-C or maybe they are just not interested in this repo, which I can understand. I promise that the next version will be much more polished and I will make some sort of a mainstream system were solving issues will be very easy and quick. Just sit tight and wait for a new release this coming summer. Thank you to everyone who gave "eqMac2" a try and I hope I won't disappoint you next time :)

Heres a sneak peak of the UI I am currently working on:

screen shot 2018-05-07 at 20 14 47
TheLostBrain commented 6 years ago

Nice looking really good. Let me know if you need a beta tester. I’m a full time dev but I do business software for a living. Mostly MS tech and AngularJS so prob wouldn’t be much help coding-wise on this project unfortunately. Good luck with it.

kaos777 commented 6 years ago

Hey there!!.. awesome lil piece of software, really like the interface.. simple yet well.. just what I need, unfortunately that "lag" bug is a dealbreaker.. still using it on a dayly basis tough (keep quit and restart it) .. really looking forward a new version.. using a USB external Line6 UX2, Macpro 3.1 @ dual 3.2ghz, 32Gb ra.. offsync audio happen after ±30min like everyone so far

Keep on the good work.. abuse the antifreeze!! and ffs enjoy life... but give us that update!! ;P lol

multipledisclosures commented 6 years ago

Had the same issue with two different USB DACs. Switched to optical input and it fixed the issue.

pavelz commented 5 years ago

Same on iMac 2011 27, tried different rates sample sizes etc. Behringer U-Phoria 204HD dac/amp

MoraFermi commented 5 years ago

I have been poking around the source code, trying to find the source of this issue for myself. I have noticed that if I compile the kernel driver using macOS 10.14 as the target, the issue disappears, no code changes necessary. I've been using a self-compiled version for the last week or so and have not encountered even a single problem so far. It might be worth investigating rebasing the kext to a newer target!

jderiz commented 5 years ago

@MoraFermi are you referring to the soundflower kext or eqmac one?

EDIT: I think in my case it was the clocking. So for anyone experiencing these issues on a mac with an external soundcard:

1.) Go to Audio-Midi Setup 2.) make A new Device use both eqmac/soundflower and your external sound card 3.) make eqmac2/soundflower the master-clock device -> enable drift corr. on your soundcard so it listens to eqmac/soundflower for the clock signal. 4.) Choose soundflower/eqmac as your output device in your preferences 5.) Hopefully be happy as this solved your problem

Im using soundflower an AU Lab so dont really know if this fixes it for eqmac... Hope it helps, if been stuck at this for what felt like decades. Should have crossed my mind earlier tho.... always thought it had something to do with the bit depth both devices operate in....

chrisgross commented 5 years ago

I have a newer MacBook Pro now, 2018 with 10.14.4, and a new DAC and this is still an issue for me. Sadly, it doesn't look like this issue is going away, so I guess this software is just not for me.

nodeful commented 4 years ago

Hey everyone. Excuse me for the lack of updates. I have been really busy on the new version of eqMac. I am happy to announce an open beta release. You can download it here: https://eqmac.app There are a lot of known bugs that I could not fix just yet:

So as you can see there's still some work to be done but at least it's a completely modern tech stack that I am fully willing to work on: 100% Swift, User Space driver and a Web UI, instead of C++, Kernel Drivers. As I said, should work on Catalina and should not have any pesky ear drum blasting volume bugs (at least I didn't come across any). I'm open to feedback and issue reports here: https://github.com/bitgapp/eqmac That repo will become the main repo for eqMac and this repo will be archived eventually. And yes it's called just eqMac, not eqMac3 :) And it will stay that way forever.

sathia-musso commented 4 years ago

looks awesome, I've just installed it and seems very nice. super sleek interface and so far no bleeding ears. I'm using usb DAC and it worked immediately. great!!!

nodeful commented 4 years ago

Hey everyone 👋 I will be open sourcing the new version of eqMac, therefore, I am closing this issue and repository as I will be transfering nodeful/eqMac2 repo to bitgapp/eqMac Please bear with me for the next couple of days as I setup that new repo. The eqMac2 code will be living in the old-eqMac2 branch if anyone is interested in referencing it for whatever reason. Please try out the new version and report bugs to the new repo. Thanks for using eqMac.

nodeful commented 4 years ago

Moving discussion and tracking of this issue to #224