Audio setup: Difference between revisions

From Notes to self
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
* Hardware: [https://rme-audio.de/adi-2-dac.html RME ADI-2 DAC ''FS''] (old version with AK4490 chip) connected via USB


* <code>/etc/sysctl.conf</code>:
<pre>
# audio
hw.snd.default_unit=4
hw.snd.feeder_rate_quality=4
dev.pcm.4.play.vchanmode=1
dev.pcm.4.play.vchanrate=48000
dev.pcm.4.play.vchanformat=s32le:2.0
dev.pcm.4.rec.vchanmode=1
dev.pcm.4.rec.vchanrate=48000
dev.pcm.4.rec.vchanformat=s32le:2.0
kern.timecounter.alloweddeviation=0
hw.usb.uaudio.buffer_ms=1
hw.snd.latency=0
hw.snd.latency_profile=0
</pre>


* <code>~/.config/mpv/mpv.conf</code>:
<pre>
audio-device=oss//dev/dsp4
audio-format=s32
audio-pitch-correction=no
audio-channels=auto
volume=100
</pre>
[[Category: FreeBSD]]
[[Category: FreeBSD]]

Latest revision as of 16:23, 16 October 2024

  • /etc/sysctl.conf:
# audio
hw.snd.default_unit=4
hw.snd.feeder_rate_quality=4
dev.pcm.4.play.vchanmode=1
dev.pcm.4.play.vchanrate=48000
dev.pcm.4.play.vchanformat=s32le:2.0
dev.pcm.4.rec.vchanmode=1
dev.pcm.4.rec.vchanrate=48000
dev.pcm.4.rec.vchanformat=s32le:2.0
kern.timecounter.alloweddeviation=0
hw.usb.uaudio.buffer_ms=1
hw.snd.latency=0
hw.snd.latency_profile=0
  • ~/.config/mpv/mpv.conf:
audio-device=oss//dev/dsp4
audio-format=s32
audio-pitch-correction=no
audio-channels=auto
volume=100