From nobody Sun Jun 28 15:58:50 2026 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gpDbz4ghWz6jTMP for ; Sun, 28 Jun 2026 15:58:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gpDbz3rcjz49ts for ; Sun, 28 Jun 2026 15:58:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782662335; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=037XlCC5OKwwO11XHS3X/D/yDy1U2HG6ZzNAvTUAt3w=; b=Y+ds1BlIj8FF6vVmb87+F+7yfD7D//psjDTtfDaJgBUH8EIdYLRFrAbBr2c0hv4z/qeBzQ w7updfY1x8OjP8ST1nHxKP4Ih2ZhUQrsA6lzFDCdPkxgFL+JjRWnZgT0dKmcHZNmxwnt6b q6vIoIe5LrxKRgCb12R0TGXGdN/CZPYZ7NvNVJ0xtsw1+XhqgRi68j7PKEL1FwEQ1ZKLU/ s6gbOHj2Fj8URFgEHdznYdwt4ACjwJafTxVQoSA7QtI8XhXuwuNlipnFkLGJChkxNNkEfM S1sJQY8VL01hKgfDRyxC9FUUjMnf3ZYZm3QkSi1w/XzwHShmJtrQGGW0cgY+Ug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782662335; a=rsa-sha256; cv=none; b=AOk7lvQSnOWudOyDTqfd5jtXYynmDgV1fviC0fZtvSQjQZ9L34HBtNIf8Bg0/tLYgAMmOd wlwe4ZmulWEupzugWXrCN7GFXxCl8ODYDSys1+9y9NQTOZXzc8ENRBBqocvneWcDcW5wIc USBh9/GIjf6jZIgzGGuerUEzMyfzg7ZSYDx/j4JI1YOKACvWqJdz0sBDS9eXgsohYxcZ+H glgP9WE6G6MkLe4evNuSlJMeO/DotIeWXJS7UFWdG0HoeMEbykyOwDruaqTQKZJjFQ+3ZZ 8xCX55Y4TF2IC23MyK0Xp7rN2H9aTafgr9MLV2u29QYxbTzV0oIJXwdoHYT+CQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782662335; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=037XlCC5OKwwO11XHS3X/D/yDy1U2HG6ZzNAvTUAt3w=; b=IG/PAV7+ksGl+kUN/POkmC+LAzJdunJRatO/Hve4LRVlHYRE0mDoSIIE9lB9rfcX6iAEXl yGC3y+JcBUdoqqtC0XVRccWBtyhTMR4M29C3Ux+3Qr1ZkHoGKnBHUpj46cI2/jktd/Ty92 1XT/6bkxG/ktizATI1Kq04U5aC34qdxxFLTqc7DU2D3FgkA4NX6if/uNIX48XjNFMOTIIX 26YTJ3lNYvvny3Fl9fSp5VqJ2/zY2DEqsyNgUCuQslt2wt2Vn5PMr5y3vfcfVAgQAUjNms gHeydQmoY5skMiB774LyzmFSX3nz8QYluN/WG9vg+No8f6T4l+y0ilvZWrx/yQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gpDbz2ML9z2FF for ; Sun, 28 Jun 2026 15:58:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3230f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 28 Jun 2026 15:58:50 +0000 To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Cc: Marcel Weissenbach From: Sergio Carlavilla Delgado Subject: git: faed907f34 - main - Handbook-multimedia: Adding resampling audio List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: carlavilla X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: faed907f34b215b8459d25dd32385226750441ad Auto-Submitted: auto-generated Date: Sun, 28 Jun 2026 15:58:50 +0000 Message-Id: <6a4144ba.3230f.710ff5d@gitrepo.freebsd.org> The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=faed907f34b215b8459d25dd32385226750441ad commit faed907f34b215b8459d25dd32385226750441ad Author: Marcel Weissenbach AuthorDate: 2026-06-28 15:57:37 +0000 Commit: Sergio Carlavilla Delgado CommitDate: 2026-06-28 15:57:37 +0000 Handbook-multimedia: Adding resampling audio --- .../en/books/handbook/multimedia/_index.adoc | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/documentation/content/en/books/handbook/multimedia/_index.adoc b/documentation/content/en/books/handbook/multimedia/_index.adoc index f1a56c3f13..fb6f696f35 100644 --- a/documentation/content/en/books/handbook/multimedia/_index.adoc +++ b/documentation/content/en/books/handbook/multimedia/_index.adoc @@ -237,6 +237,37 @@ Keep in mind that these values are for the example indicated above. They may vary depending on the system. ==== +[[resampling-quality]] +=== Resampling Quality + +The process of changing the sample rate of an audio stream is called resampling. + +This usually happens automatically in situations like recording audio with an DI or simply when playing back audio files with very low resolution. + +Example: DI (Digital Interface) uses 192000 kHz, application only accepts 48000 kHz (or the other way around). + +If possible, this should be adjusted outside the sound device driver, but for cases where this is not possible (Or the hardware is bad at resampling), you have influence over the quality that is used for resampling. + +Should you be unsure if you need this, for normal music listening, doing meetings and so on the default value is totally fine and most applications use 48000 kHz anyway, so resampling rarely happens. + +When making music, recording sounds otherwise where quality matters or you are an audiophile, you can increase the resampling quality. + +For the highest possible resample quality, execute the following command: + +[source,shell] +.... +# sysctl hw.snd.feeder_rate_quality=4<.> +# sysctl hw.snd.feeder_rate_round=0<.> +.... +<.> 100dB stopband, 164 taps and 97% bandwidth +<.> Large prime divisions for high accuracy + +To keep these values after reboots, they can be added to the `/etc/sysctl.conf`. + +It is important to keep in mind that adjusting the resample quality has influence on CPU usage and delay. + +More details about resampling can be read in man:sound[4] + [[troubleshooting-sound]] === Troubleshooting Sound