Egghead.page Logo

How to Fix Audio Desync in RetroArch on macOS

Experiencing audio lag or desynchronization while emulation gaming on your Mac can ruin the experience. This guide walks you through the essential steps to troubleshoot and resolve audio desynchronization issues in RetroArch specifically for macOS users. We will cover driver adjustments, latency settings, and core-specific configurations to ensure your sound matches the video perfectly.

Check Your Audio Driver

The most common cause of audio desynchronization in RetroArch on macOS is an incompatible audio driver. By default, RetroArch may select a driver that does not communicate efficiently with your specific hardware or macOS version. Navigate to the Settings menu, then select Audio. Look for the Driver option and try switching between CoreAudio and ALSA. CoreAudio is generally the most stable choice for macOS, but toggling to ALSA and back can sometimes reset the audio stream and resolve timing issues. After changing the driver, restart RetroArch completely for the changes to take effect.

Adjust Audio Latency Settings

If the driver switch does not solve the problem, you may need to manually adjust the audio latency. High latency can cause sound to trail behind the video, while low latency might cause crackling or stuttering. In the Audio settings menu, find the Latency option. The default is usually 64ms, but increasing this to 128ms or 256ms can provide a larger buffer that stabilizes the sync. Conversely, if the audio is consistently ahead of the video, try reducing the latency slightly. Enable “Auto Latency” if available, as this allows RetroArch to dynamically adjust the buffer based on the current performance of the core you are using.

Synchronize Video and Audio

Audio desync is often a symptom of video frame pacing issues rather than an audio problem itself. If your emulation core is not running at full speed, the audio will drift. Go to the Settings menu and select Video. Ensure that “VSync” is enabled to match the refresh rate of your display. Additionally, check the “Frame Delay” setting. Increasing the frame delay can reduce input lag but might impact audio sync if the system cannot maintain the frame rate. For macOS users, ensuring that “Threaded Video” is enabled can also help distribute the processing load more evenly between audio and video threads.

Core-Specific Configurations

Some emulation cores handle audio processing differently than others. If the desynchronization occurs only with specific consoles, such as PlayStation 1 or Nintendo 64, the issue may lie within the core settings rather than the global RetroArch configuration. Load the content for the problematic game and access the Quick Menu. Select Options and look for audio-specific settings like “Interpolation” or “Sample Rate.” Changing the sample rate to match your macOS system output (usually 44.1kHz or 48kHz) can eliminate drift. You can save these settings as a core override so they apply automatically every time you launch that specific emulator.

Update RetroArch and Cores

Software bugs are a frequent culprit for synchronization issues, especially after a macOS system update. Ensure you are running the latest version of RetroArch by checking the Online Updater menu. Select “Update Core” to make sure all your emulation cores are current, as developers frequently patch audio timing bugs. If you recently updated macOS, consider checking the RetroArch forums for known compatibility issues with your specific version of the operating system. Reinstalling RetroArch can also clear out corrupted configuration files that might be forcing incorrect audio parameters.

Monitor System Performance

Finally, audio desync can occur if your Mac is under heavy load from other applications. Emulation, particularly of newer consoles, requires significant CPU and GPU resources. Close any unnecessary background applications to free up system resources. Check your Activity Monitor to ensure RetroArch has sufficient priority. If your Mac is overheating, thermal throttling may cause the CPU to slow down, leading to frame drops and subsequent audio drift. Ensuring proper ventilation and managing system load will help maintain consistent performance and keep your audio perfectly synchronized with the gameplay.