-
Notifications
You must be signed in to change notification settings - Fork 1
Sound Issues
❗ If you want to know how to get USB Audio set up click here.
Sound still is a problem child with the Raspberry Pi. Currently, there does not seem to be a best solution for all the sound issues. General information about sound issues can be found at http://elinux.org/R-Pi_Troubleshooting#Sound.
First and foremost try forcing hdmi by adding the following to /boot/config.txt
:
hdmi_drive=2
This place re-cites some posts (or parts of them) from different forum threads that might increase the sound quality:
- Update the retroarch.cfg file with audio_out_rate = 44100 Using that config the ALSA sound coming from the headphone jack is a lot clearer and has a lot less static.
You can post your configuration here to give other people an idea about what kind of audio they can expect with certain settings. Interesting parameters might be
- HDMI/analog
- ARM frequency
- emulator core
- eventually parameters set in /etc/retroarch.cfg
- perceived audio quality, problems
From puncrathod:
I managed to get perfect sound with retroarch+pocketsnes core by defining sdl as the audio backend with 44100 samplerate. However I never managed to get the thing run faster than 70% speed during actual gameplay. I tested it with lostvikings and when you pause the game the game runs fullspeed and the sound is perfect. But while playing the speed goes below 80% and the sound and music gets this echoing sound. I'll see if I can make it run at full speed by a little overclock and some addinational video settings.
-
The only /boot/config.txt setting I had was sdtv_mode=2 "I have a pal tv that I use for the pi" I did try increasing the cpu_freq to 900 and core_freq to 450 and that helped a little but still were not getting full speed.
-
The only settings i changed in the /etc/retroarch.cfg was
audio_out_rate=44100 audio_driver=sdl
-
(alsa works perfect too if the game is running at full speed but even with 1% drop in speed and starts making a static noise)
-
I'm running a fresh rasbian installed from http://archive.raspbian.org/installer/rpi_installer_08-19-12.zip with nothing more extra installed than retroarch+pocketsnes+sdl and the libraries needed to run them. I don't have DE installed and run everything from the console
-
I realize that the sdl audio is a bit slower than alsa and makes the snes run even slower but atleast it doesn't turn the audio into a garbled mess when the emulator doesn't run at full speed.
Another potentially helpful post about configuring ALSA.
DGEN sound configuration (according to this post):
if anyone has sound issues with DGen - try changing the int_soundrate to 44100
worked for me.
Emulation is faster when disabling rewind in retroarch.cfg
I use a TV Monitor with HDMI input for video and audio. I went to the Raspberry Pi configuration menu and chose “force audio out of HDMI”. Also did the same thing through the “Configure Audio Settings” option on the Retropie main menu in Emulation Station and it did not work.
I had to go into the /boot/config.txt
Raspberry PI config file and add in the following lines…
# forces HDMI mode
hdmi_drive=2
# Pretends all audio formats are supported by display, allowing passthrough of DTS/AC even when not reported as supported.
hdmi_force_edid_audio=1
I didn't change any other sound parameters in the config files.
To remove hiss or static or white noise when using the 3.5mm headphone jack:
- Run at the command line:
sudo nano /boot/config.txt
and insert at the bottom of the file:disable_audio_dither=1
- turn up Retropie volume to 100% in the settings menu in the program.
- get an inline volume control: http://www.amazon.com/Koss-155954-VC20-Volume-Control/dp/B00001P4XH/ref=pd_bxgy_23_img_y
There's a lot of old documentation on how to set this up. To fix this, especially if you are using a USB Audio dongle in leu of the Raspberry Pi's scratchy 3.5 mm audio jack. (Blame the manufacturer of that part. Hopefully the foundation will fix it when the next Pi comes out.)
So instead of using one of those large shield with the RCA jacks on it, a small USB Audio Dongle and a few commands.
- At startup, press F4 to exit EmulationStation and go to the console.
- Assuiming the USB Audio dongle is plugged in, type
lsusb
, and look for some device with "C-Media Electronics, Inc. Audio Adapter" in it. - Not a necessary step but one that you should note. Type,
amixer
. You'll see the default bcm2835 set up. Our device is not set up yet. Knowing about this command is still helpful. - Find our card number. More than likely, the "C-Media USB Headphone Set" will be set to
Card 1
. You will need to remember this number for the next step. - Use
nano
to create/etc/asound.conf
with this content. Press Ctrl+X followed by Y when finished. Replace the card number in the code below with the correct card number if it is other than1
.
```
pcm.!default {
type hw card 1
}
ctl.!default {
type hw card 1
}
```
-
sudo reboot
. When EmulationStation or a video game is played, you will start to notice sound. -
If you want to test stereo, F4 again to do a speaker test using
speaker-test -c2 hw:Set,0
where-c2
indicates the number of channels. If you have just one speaker, use-c1
instead. You should hear a hiss in each speaker separately. This test will go on continuously until you press Ctrl+C.
⚠️ Note: There is a pitfall with these instructions, and that is I (@jrcharney) don't know what will happen if you plug this into HDMI later. If anybody knows, append that information to this section.
- First Installation
- WiFi
- Controller Configuration (RetroArch)
- Transferring games (ROMs)
- Scraping Games
- Runcommand Launch Menu
- Getting the right MAME ROMs
- Updating RetroPie
- Using SSH
- 3do
- Amiga
- Amstrad CPC
- Apple II
- Atari 2600
- Atari 5200 and 8 bit series
- Atari 7800
- Atari Jaguar
- Atari Lynx
- Atari ST/STE/TT/Falcon
- CoCo
- Colecovision
- Commodore 64
- Daphne
- Dragon 32
- Dreamcast
- FinalBurn Alpha
- Game & Watch
- Game Gear
- Game Boy
- Game Boy Color
- Game Boy Advance
- Intellivision
- Macintosh
- MAME
- Master System
- Megadrive/Genesis
- MESS
- MSX
- Nintendo 64
- Nintendo DS
- Nintendo Entertainment System
- Neo Geo
- Neo Geo Pocket
- Neo Geo Pocket Color
- Oric-1/Atmos
- PC
- PC Engine/TurboGrafx-16
- PSP
- PlayStation 1
- ResidualVM
- SAM Coupé
- Saturn
- ScummVM
- Sega 32X
- Sega CD
- Sega SG-1000
- Super Nintendo Entertainment System
- TI-99/4A
- TRS-80
- Vectrex
- Videopac/Odyssey2
- Virtual Boy
- WonderSwan
- WonderSwan Color
- Zmachine
- ZX Spectrum
- Adventure Game Studio
- Baldur's Gate
- Cave Story
- Commander Keen
- Descent
- Dinothawr
- DOOM
- Duke Nukem 3D
- GameMaker Games
- Giana's Return
- Lincity
- Löve
- KODI
- Marathon
- Micropolis
- Minecraft Pi Edition
- OpenBOR
- OpenTTD
- OpenTyrian
- OutRun Engine
- Quake Series
- Rick Dangerous
- Prince of Persia
- Stratagus
- Super Mario War
- SuperTux
- The-Ur-Quan-Masters
- Warcraft/Starcraft
- Wolfenstein 3D
- Zelda Engine
- EmulationStation
- Custom Splash Screens
- EmulationStation Themes
- Create Your Own Theme
- Configuration Editor
- RetroAchievements
- Netplay
- Overclocking
- Memory Split
- Manual Installation
- Odroid
- Arch Linux
- Ubuntu x86
- Install via NOOBS
- RetroPie install for OSMC with external memory USB Drive
- Favorites and Child-friendly EmulationStation
- [Optimization for Nintendo 64](Optimization for Nintendo 64)
- Running ROMs from a USB drive
- Running ROMs from a Network Share
- Smaller RetroArch Screen