Falcosc / enable-loudness-equalisation

automatically adds and enables loudness equalisation to any playback device
GNU General Public License v3.0
47 stars 9 forks source link

Script is stuck at reg query call #17

Closed zZMattyP closed 9 months ago

zZMattyP commented 9 months ago

been 20 minutes , hasn't done anything...

Screenshot 2024-01-05 193951

Falcosc commented 9 months ago

Execute "Set-PSDebug -Trace 1" in your PowerShell before you run it, and then share the output to understand which command does not finish on your computer.

zZMattyP commented 9 months ago

Screenshot 2024-01-06 102703

Falcosc commented 9 months ago

Looks like your windows installation has trouble searching your registry to find your audio device. Copy the last line and type

reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render /s /f speakers /d

And monitor with task manager to see if your computer gets busy by this call, or if your system is just refusing to search "speakers" in your registry Audio section.

Falcosc commented 9 months ago

Interesting, just found out that you need to run this line as admin as well to find anything. Not being admin could be the issue of somebody else who always got the error message "Could not find any device named speakers" So if you test why your computer does not execute the search, run it as admin as well.

Falcosc commented 9 months ago

@zZMattyP I have replaced the req query call with powershell functions. Please try this out and give me feedback: https://raw.githubusercontent.com/Falcosc/enable-loudness-equalisation/a5ee4cef3c04dd658012e0b59616324d36387bb8/EnableLoudness.ps1

zZMattyP commented 9 months ago

@Falcosc I believe the raw worked , see below... appreciate you digging deep and helping me fix this issue.

Screenshot 2024-01-06 185045

Falcosc commented 9 months ago

Interesting, thanks for testing, I will publish it now.

Falcosc commented 9 months ago

@zZMattyP there was a bug in your version. It didn't apply anything. Please run the fixed one again: https://raw.githubusercontent.com/Falcosc/enable-loudness-equalisation/main/EnableLoudness.ps1