By the way, I wanted to change some parameters for DGEN..where do I do it? in dgenrc that is located in /retropie/emulators/dgen-sdl or add the lines I want to change to /retropie/configs/all/dgenrc???
Hmm, I did not observe sound issues over HDMI at all so far. Maybe you want to try out one of the other two SNES emulators (SNES9X, PiSNES) that also come with the SD-card image or can be installed with the RetroPie Setup Script.
DGEN can be configured with the file /retropie/configs/all/dgenrc by default.
Have you tried finding different roms of the same game? Most games have multiple different files online, although it may be hard to tell the difference. Sometimes the file will be bad, or just not work well with a particular emulator. Try out a few and see if the sound improves on one of them.
This might be a stupid question, but…
Are you sure it’s not just the rain sounds at the beginning of the game? It goes from the start of the game until after you first rescue Zelda. They kinda sound like static, so I can understand how that might be interpreted as a sound glitch.