Running FreeBSD-10.1, I have a laptop with an HDMI port. Running
However, running
Now, if I use multimedia/vlc I can select the audio device, from its menu, called pcm1:virtual:dsp1.vp0. Using multimedia/mplayer, however, I have silence unless I use sysctl to change the default audio device. If I run
Which is the laptop's sound card. This is fine, because it's what I usually want. If I run
In Linux, I can use
Thanks for any help. I see this thread, https://forums.freebsd.org/threads/xbmc-for-freebsd.3882/, but it doesn't seem relevant to my situation.
cat /etc/sndsat
gets me nothing, because I just realized I typed etc rather than dev. cat /dev/sndstat
gives me
Code:
pcm0: <VIA VT1802_1 (Analog 2.0+HP/2.0)> (play/rec)
pcm1: <Intel Panther Point (HDMI/DP 8ch)> (play) default
sysctl -a |grep hw.snd.default
I get the result of:
Code:
hw.snd.default_unit=0
sysctl hw.snd.default_unit=1
I then have sound with mplayer.In Linux, I can use
mplayer -ao alsa:device=hdmi myfile.mp4
to get mplayer to work with sound. So, I am guessing that I'm just misreading or lacking knowledge in the way to use mplayer's -ao option with FreeBSD. I've tried various combinations of -ao oss with device=pcm1, device=hdmi, device=HDMI, and a few others. While it's not a big deal, as it's easy enough to use sysctl, I'm wondering if someone knows the correct options to use with mplayer.Thanks for any help. I see this thread, https://forums.freebsd.org/threads/xbmc-for-freebsd.3882/, but it doesn't seem relevant to my situation.