Synapse 4 keeps changing default audio device | Razer Insider
Skip to main content
Question

Synapse 4 keeps changing default audio device


I recently replaced Synapse 3 with Synapse 4 but now, every time i log into Windows after powering on my PC, the default audio device, which was set to my soundcard/PC speakers, is set to my Razer wireless headset. This is done by Synapse because when I completely close Synapse and restart it, it does the same (changing the default audio device from speakers to the Razer headset).

PLEASE stop messing with the default audio device. Like, I mean it. It's really, really annoying and I can set the default audio device perfectly fine myself. I truly don't need some external software for it, and most importantly: most of the audio I play, is through the speakers of my sound card. I only occasionally need the wireless headset and when that happens, i'll make sure i'll switch the output device to the headset. I promise.

PLEASE STOP SWITCHING THE DEFAULT AUDIO DEVICE FROM SPEAKERS TO THE WIRELESS HEADSET. PLEASE STOP MESSING WITH THE DEFAULT AUDIO DEVICE. PLEASE STOP SWITCHING THE DEFAULT AUDIO DEVICE FROM SPEAKERS TO THE WIRELESS HEADSET. PLEASE STOP MESSING WITH THE DEFAULT AUDIO DEVICE. PLEASE STOP SWITCHING THE DEFAULT AUDIO DEVICE FROM SPEAKERS TO THE WIRELESS HEADSET. PLEASE STOP MESSING WITH THE DEFAULT AUDIO DEVICE.

Thank you.

Did this topic help you find an answer to your question?

10 Replies

  • Author
  • Insider Mini
  • 2 replies
  • October 17, 2024

Terepin
  • Insider
  • 29 replies
  • October 17, 2024

At this point I wouldn’t be surprised if they’d just say “It’s not a bug, it’s a feature.”


  • Author
  • Insider Mini
  • 2 replies
  • October 19, 2024

Here's a powershell script that fixes this shit. You need ‘AudioDeviceCmdlets’ for this:

  1. Open powershell as administrator
  2. Install AudioDeviceCmdlets: Install-Module -Name AudioDeviceCmdlets -Force -Scope AllUsers
  3. Import the module: Import-Module AudioDeviceCmdlets
  4. Get your audio device ID's: Get-AudioDevice -list
  5. Note down the ID for your preferred default audio device and the ID of the Razer audio device
  6. Replace the string of AudioDevice_A with your Razer ID in the script below
  7. Replace the string of AudioDevice_B with your preferred audio device in the script below
  8. Open task scheduler
  9. Create new task > Change user to SYSTEM
  10. Triggers: At log on
  11. Action: start a program > powershell.exe -noprofile -executionpolicy bypass -file C:\users\YOURUSERNAME\desktop\changeaudio.ps1

Save this script as changeaudio.ps1 on your desktop or other location but make sure to use the correct path in step 11.

# Function to check if RazerAppEngine.exe is running
function WaitFor-RazerAppEngine {
    $ProcessName = "RazerAppEngine.exe"

    Write-Host "Waiting for RazerAppEngine.exe to be active..."

    # Loop until the process is found
    while (-not (Get-Process -Name "RazerAppEngine" -ErrorAction SilentlyContinue)) {
        Start-Sleep -Seconds 2  # Wait for 2 seconds before checking again
    }

    Write-Host "RazerAppEngine.exe is active. Executing the script..."
}

# Call the function to wait for the process
WaitFor-RazerAppEngine

# Delayed start
Start-Sleep -s 2

# Define AudioDevice by ID (ex: "{0.0.0.00000000}.{c4aadd95-74c7-4b3b-9508-b0ef36ff71ba}")
$AudioDevice_A = "{0.0.0.00000000}.{d7e30fee-a51f-4f33-858e-d951f3839f8b}"
$AudioDevice_B = "{0.0.0.00000000}.{ebd97e80-4318-4afd-b13e-168488c8d35b}"

# Toggle default playback device
$DefaultPlayback = Get-AudioDevice -Playback
If ($DefaultPlayback.ID -eq $AudioDevice_A) {Set-AudioDevice -ID $AudioDevice_B | Out-Null}
Else {Set-AudioDevice -ID $AudioDevice_A | Out-Null}

# Play sound
Start-Sleep -Seconds 3
$Sound = new-Object System.Media.SoundPlayer
$Sound.SoundLocation = "$env:SystemRoot\Media\Windows Background.wav"
$Sound.Play()

Thank you: https://github.com/frgnca/AudioDeviceCmdlets


  • Insider Mini
  • 3 replies
  • November 2, 2024

I contacted the support to resolve this issue. They keep playing dumb. Instead of actually answering my questions, they keep replying with some stupid generic answers, which look like they were generated by an AI. They constantly keep asking for Synapse 4 logs, although I told the exactly where the issue is.

Synapse 4 does that on purpose, so clearly this behavior is by design.

I looked at their crappy source code and I found that the most probable cause of this is the file simple_service.dll

By default its is located at: C:\Program Files\Razer\RazerAppEngine\app-4.0.383\CommonDLL\simple_service.dll

 

This DLL is written in C++ and has a method simpleSetDefaultAudioDevice(), which does all the mess.

This DLL first calls simpleEnumerateAudioDevices(), then if it finds a Razer device it calls simpleSetDefaultAudioDevice() to change output to this device.

You will also find log entries in simple_service.log, which contain these method names.

 

 


Terepin
  • Insider
  • 29 replies
  • November 4, 2024

As expected: it’s not a bug, it’s a feature.

Will deleting the file fix this?


  • Insider Mini
  • 3 replies
  • November 4, 2024

Unfortunately deleting the file will not fix this. I mean it will “fix it” in a way, but probably not how you want it ;). Razer Synapse will briefly start and then crash as soon as it calls the missing DLL.


Terepin
  • Insider
  • 29 replies
  • November 4, 2024

Well I guess I will stay with Synapse 3. V4 has other issues too, like lighting getting stuttery when switching profiles.


  • Insider Mini
  • 1 reply
  • November 6, 2024

Like two days ago i installed Synapse 4 and noticed this issue where it was overriding my default playback and recording devices on startup. And like 24 hours later i was annoyed enough to create this c# program to override Synapse. So ya its new code, limited testing but it seems to work (at least on my computer) so just keep that in mind if you try using it. This is a preview of what it looks like running.


  • Insider Mini
  • 3 replies
  • November 22, 2024

I am currently running Synapse 4, version:  4.0.86.2411140357 and it seems they fixed it. My audio device does not switch anymore on startup. Can you confirm it?


FiszPL
Vanguard
Forum|alt.badge.img+1
  • VANGUARD
  • 6309 replies
  • November 22, 2024
eiverr wrote:

I am currently running Synapse 4, version:  4.0.86.2411140357 and it seems they fixed it. My audio device does not switch anymore on startup. Can you confirm it?

Yes


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings