I’ve fixed my problem.
I changed the commands in the es_systems.cfg. So that I use the Genesis-Plus Emulator for the Mastersystem and the Megadrive roms.
Now there’s sound over HDMI on all my Emulators (Gamegear, Mastersystem, Megadrive, NES, SNES). Before I changed the megadrive emulator I coulden’t execute the roms when watching Video over Composite. This problem fixed also with changing the emulator to Genesis-Plus.
Here is the command-line that must be changed in es_systems.cfg:
Gamegear:
old -> COMMAND=/home/pi/RetroPie/emulators/osmose-0.8.1+rpi20121122/osmose %ROM% -joy -tv -fs
Sega Master System II:
old -> COMMAND=/home/pi/RetroPie/emulators/osmose-0.8.1+rpi20121122/osmose %ROM% -joy -tv -fs
Sega Megadrive:
old -> COMMAND=dgen -f %ROM%
Change these three lines with the new COMMAND-line:
COMMAND=retroarch -L /home/pi/RetroPie/emulatorcores/Genesis-Plus-GX/libretro.so %ROM%
The Genesis-Plus Core is already installed on the sd card.
My sound problem is solved! :-)
Now I have to change the resolution with the help of the script in this link http://angrynerd.flimmerkiste.com/?p=23
to get clearer sound for megadrive and snes roms…