0

DAC2 Pro Help with omxplayer

After installation of a HiFiBerry DAC, omxplayer does not output sound through the DAC.

Recently, I was using omxplayer to play audio out of the headphone jack. Recognizing I needed higher quality audio for my application, I sprung for a HiFiBerry DAC2 Pro XLR. As per the installation instructions, I did the following:

I edited `/boot/config.txt` by commenting out:

```
#dtparam=audio=on
```

In the same boot config file, I configured the device tree overlay file:

```
# for hifiberry DAC2 PRO
dtoverlay=hifiberry-dacplus
```

I creating /etc/asound.conf:

```
pcm.!default {
  type hw card 0
}
ctl.!default {
  type hw card 0
}
```

And then to test, I installed mplayer and tested it successfully.

```
mplayer stereo-test.mp3
```

But when I ran omxplayer on the same file, I did not get output to the HiFiBerry DAC.

How do I have to configure the audio system so omxplayer outputs to the DAC as well, or get more info about what is really going on?

3 comments

Please sign in to leave a comment.