Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
audio_issues [2021/09/27 11:09] – added sections in anticipation of future features atari | audio_issues [2022/12/21 06:44] (current) – [I still don't have any sound!] update to current instructions atari | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Audio issues ====== | ====== Audio issues ====== | ||
- | <WRAP center round info 60%> | + | <WRAP center round info> |
Most audio issues on Batocera **v31** and below have been fixed with the release of **v32**. This is because Batocera **v32** introduced a brand new sound management layer (Pipewire) to handle most of the audio stack. This article is more here for users on older versions or those really persistent audio issues. | Most audio issues on Batocera **v31** and below have been fixed with the release of **v32**. This is because Batocera **v32** introduced a brand new sound management layer (Pipewire) to handle most of the audio stack. This article is more here for users on older versions or those really persistent audio issues. | ||
</ | </ | ||
- | ==== I have no sound! ==== | + | ===== I have no sound! |
If trying to use HDMI sound on a Radeon GPU, first check [[: | If trying to use HDMI sound on a Radeon GPU, first check [[: | ||
- | When that's all clear, first experiment with different settings in **MAIN MENU** -> **SYSTEM SETTINGS** -> **AUDIO PROFILE**. You should get sound immediately when exiting back to the **MAIN MENU** (there is background music playing by default). If you're still not able to get any sound, try also manually setting an **AUDIO OUTPUT** device (they change with each different profile, you need to exit back to **MAIN MENU** to update the list). | + | When that's all clear, first experiment with different settings in **MAIN MENU** -> **SYSTEM SETTINGS** -> **AUDIO PROFILE**. You should get sound immediately when exiting back to the **MAIN MENU** (there is background music playing by default). If you're still not able to get any sound, try also manually setting an **AUDIO OUTPUT** device (they change with each different profile, you need to exit back to **MAIN MENU** to update the list). |
- | <WRAP center round info 60%> | + | - Go to **MAIN MENU** -> **SYSTEM SETTINGS** -> **AUDIO PROFILE** and select the first profile, then back out to the **MAIN MENU**. |
+ | - Go back into **SYSTEM SETTINGS** -> **AUDIO OUTPUT** and test all available outputs, exiting to the **MAIN MENU** between each change. | ||
+ | - If none of the **AUDIO OUTPUT** options worked, repeat steps 1-2 for a different **AUDIO PROFILE**. Your **AUDIO OUTPUT** options might change depending on the **AUDIO PROFILE** selected. | ||
+ | |||
+ | If the appropriate options are not being listed in the menu, you could try using the generic name for the audio device by manually editing the configuration file. Open '' | ||
+ | |||
+ | < | ||
+ | audio.device=hdmi | ||
+ | </ | ||
+ | |||
+ | where " | ||
+ | |||
+ | <WRAP center round info> | ||
In **v32** and higher, going into Kodi to test various audio outputs live is no longer required. This can all be done from within the EmulationStation **MAIN MENU** -> **SYSTEM SETTINGS** audio settings, then backing out, no reboot required. | In **v32** and higher, going into Kodi to test various audio outputs live is no longer required. This can all be done from within the EmulationStation **MAIN MENU** -> **SYSTEM SETTINGS** audio settings, then backing out, no reboot required. | ||
</ | </ | ||
Line 21: | Line 33: | ||
- You can also diagnose some sound issues with the '' | - You can also diagnose some sound issues with the '' | ||
- | ==== I have sound in Kodi, but not in the main menu or emulators even after selecting the audio device from the above steps and rebooting ==== | + | ==== I still don't have any sound! ==== |
+ | |||
+ | In Batocera **v36** and higher, try activating the [[https:// | ||
+ | - Open up an SCP session (or use Batocera' | ||
+ | - Go to ''/ | ||
+ | - Edit the line which says '' | ||
+ | - [[: | ||
+ | - Reboot | ||
+ | |||
+ | More information can be found in [[https:// | ||
+ | |||
+ | ===== I have sound in Kodi, but not in the main menu or emulators even after selecting the audio device from the above steps and rebooting | ||
- | <WRAP center round info 60%> | + | <WRAP center round info> |
No longer applicable for **v32** and up. EmulationStation can see all audio devices and profiles. | No longer applicable for **v32** and up. EmulationStation can see all audio devices and profiles. | ||
</ | </ | ||
Line 35: | Line 58: | ||
Then, edit your '' | Then, edit your '' | ||
- | <WRAP center alert 60%> | + | <WRAP center alert> |
Don't use Windows' | Don't use Windows' | ||
</ | </ | ||
Line 43: | Line 66: | ||
- Reboot, and if your audio still isn't working then try '' | - Reboot, and if your audio still isn't working then try '' | ||
- | ==== I have sound in emulators and the main menu, but not during video previews | + | ===== Not all of my speakers are being used ===== |
- | <WRAP center round info 60%> | + | Ensure you have selected the right audio profile in **MAIN MENU** -> **SYSTEM SETTINGS** -> **AUDIO PROFILE**. |
- | No longer applicable for **v32** and up. '' | + | |
+ | For instance, a 5.1 surround sound setup would want to use the " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== I have sound in emulators and the main menu, but not during video previews ===== | ||
+ | |||
+ | <WRAP center round info> | ||
+ | No longer applicable for **v32** and up. '' | ||
</ | </ | ||
Line 88: | Line 119: | ||
Worst case, if it doesn' | Worst case, if it doesn' | ||
- | ==== No sound during the splash video ==== | + | ===== No sound during the splash video ===== |
First of all, check that the splash.screen.sound value in the '' | First of all, check that the splash.screen.sound value in the '' | ||
- | <WRAP center round info 60%> | + | <WRAP center round info> |
The following is no longer applicable for **v32** and up. Pipewire is used, not Alsa, which has a completely different configuration (there shouldn' | The following is no longer applicable for **v32** and up. Pipewire is used, not Alsa, which has a completely different configuration (there shouldn' | ||
</ | </ | ||
Line 106: | Line 137: | ||
- When updating batocera, those changes will be lost. | - When updating batocera, those changes will be lost. | ||
- | ==== My audio is randomly cutting out, depending on what's happening on screen ==== | + | ===== My audio is randomly cutting out, depending on what's happening on screen |
- | <WRAP center round todo 60%> | + | It could be that your audio buffer isn't high enough. |
- | To be amended. | + | |
+ | You can change your default audio buffer for libretro cores by navigating to **MAIN MENU** -> **GAMES SETTINGS** -> **PER SYSTEM ADVANCED CONFIGURATION** -> <system affected by audio cutting out> -> **AUDIO LATENCY**. | ||
+ | |||
+ | To change the setting for all libretro cores, you can add '' | ||
+ | |||
+ | <WRAP center round info> | ||
+ | Note that this mostly only affects libretro cores. If you have audio skipping on other emulators which this setting has no effect on, you'll need to discover how to adjust the audio buffer settings for that emulator in particular (usually can be found on its [[: | ||
</ | </ | ||
- | It could be that your audio buffer isn't high enough. | + | ===== My audio is randomly cutting out, and/or is distorted, on my RPi but only when using the headphone jack, and not the HDMI audio output ===== |
- | You can change your default audio buffer | + | This is a very specific situation. The RPi seems like it overflows the audio buffer seemingly at random with the default audio drivers and latency. This can solved |
+ | * Increasing the audio latency as above (some Pis can do this with just 96ms, others require significantly higher settings like 256ms which is obviously not desirable) | ||
+ | * Switching the audio driver | ||
- | ==== My audio is consistently cutting out, irrelevant of what my system is doing ==== | + | === Via batocera.conf === |
+ | |||
+ | Add '' | ||
+ | |||
+ | === Via RetroArch' | ||
+ | To switch the default audio driver for Libretro cores: | ||
+ | - Run a game that uses a Libretro core. | ||
+ | - Press '' | ||
+ | - Press {{: | ||
+ | - Navigate to **Settings** -> **Audio** -> **Output** -> **Audio (Audio driver to use.)** and switch it to '' | ||
+ | - That's it. Simply changing this setting saves it. You can exit out of the emulator now. | ||
+ | |||
+ | If the setting keeps going back to '' | ||
+ | * Use the '' | ||
+ | * Disable any configuration overrides you might be using | ||
+ | * Disable any core overrides you might be using | ||
+ | * Disable any folder overrides you might be using | ||
+ | * Delete any overlays you might be using | ||
+ | |||
+ | <WRAP center round info> | ||
+ | This only works for Libretro cores, which is most of the systems that can be emulated on the Pi anyway. Other emulators either require advanced knowledge on changing their audio configuration, | ||
+ | </ | ||
+ | |||
+ | ===== My audio is consistently cutting out, irrelevant of what my system is doing ===== | ||
This is more likely to be a hardware fault. Replug the cable, try a different cable, using a different interface (like 3.5mm analog audio instead of HDMI), etc. | This is more likely to be a hardware fault. Replug the cable, try a different cable, using a different interface (like 3.5mm analog audio instead of HDMI), etc. | ||
+ | |||
+ | ===== How do I diagnose my audio cutting out? ===== | ||
+ | |||
+ | While running a game, SSH into Batocera and run '' | ||
+ | |||
+ | ===== My audio device is not appearing in the list of available audio outputs on Raspberry Pi ===== | ||
+ | |||
+ | Try using the fake kernel mode setting instead of the full one as a workaround. | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | # Enable DRM VC4 V3D driver on top of the dispmanx display stack | ||
+ | # Preferred ' | ||
+ | # | ||
+ | |||
+ | # Optional ' | ||
+ | dtoverlay=vc4-fkms-v3d | ||
+ | </ | ||
+ | |||
+ | Using the fake kernel mode setting may introduce performance issues. It is preferable to instead figure out the root cause of the issue instead. | ||
+ | |||
+ | ===== I need to automate something involving my audio settings ===== | ||
+ | |||
+ | You can use [[: | ||
- audio_issues.1632733743.txt.gz
- Last modified: 2 years ago
- by atari