I'm developing an arcade cabinet with my Raspberry Pi, but I'm running into some problems regarding sound. When I try to play an MP3 file with omxplayer (
omxplayer -o local music.mp3), it sounds very good. However, when I try to do it with any other program or library (mpg321 or libmpg123) I get a lot of static and very faintly in the background I can hear the music or sound playing. Is there any way to play sounds properly without OMXPlayer as I haven't been able to find a C API for it.
I'm using a Raspberry Pi B+ and the analog audio output.