I've followed the instructions to "force sound over 3.5mm jack" but when I run omxplayer example.mp3
I get no audio. When I force omxplayer to play over the 3.5mm jack using omxplayer -o local example.mp3
it works. How do I change the system-wide default to 3.5mm so when I run omxplayer example.mp3
(or play audio through another app) it works?
1 Answer
The Raspberry Pi documentation covers three ways to force audio. Try the first two methods:
Desktop volume control
Right-clicking the volume icon on the desktop taskbar brings up the audio output selector;Command line
This command will switch the audio output to HDMI:amixer cset numid=3 2
Here the output is being set to 2, which is HDMI. Setting the output to 1 switches to analogue (headphone jack). The default setting is 0 which is automatic.
raspi-config
Go toAdvanced
->Audio
, HDMI and analogue should appear here
alias omxplayer="omxplayer -o local "
not actually interested in omxplayer
...your post implies otherwise