Add an example .asoundrc to use this plugin by default

This commit is contained in:
pho 2021-11-28 06:42:46 +00:00
parent 254114dc17
commit 85a603beff
4 changed files with 50 additions and 3 deletions

View file

@ -0,0 +1,12 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2021/11/28 06:42:46 pho Exp $
ALSA does not automatically use this plugin. To use it by default, copy
${EGDIR}/asoundrc
to your
~/.asoundrc
===========================================================================

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.15 2021/11/21 16:06:30 hauke Exp $
# $NetBSD: Makefile,v 1.16 2021/11/28 06:42:46 pho Exp $
DISTNAME= alsa-plugins-1.2.5
PKGNAME= ${DISTNAME:S/plugins/plugins-oss/}
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= ftp://ftp.alsa-project.org/pub/plugins/
EXTRACT_SUFX= .tar.bz2
@ -34,6 +34,13 @@ LIBS+= ${LIBOSSAUDIO}
BUILD_DIRS= oss
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
MESSAGE_SUBST+= EGDIR=${EGDIR}
INSTALLATION_DIRS+= ${EGDIR}
post-install:
${INSTALL_DATA} "${FILESDIR}/asoundrc.example" \
"${DESTDIR}${EGDIR}/asoundrc"
.include "../../audio/alsa-lib/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,5 +1,6 @@
@comment $NetBSD: PLIST,v 1.2 2021/05/12 14:14:38 ryoon Exp $
@comment $NetBSD: PLIST,v 1.3 2021/11/28 06:42:46 pho Exp $
lib/alsa-lib/libasound_module_ctl_oss.la
lib/alsa-lib/libasound_module_pcm_oss.la
share/alsa/alsa.conf.d/50-oss.conf
share/alsa/conf.d/50-oss.conf
share/examples/alsa-plugins-oss/asoundrc

View file

@ -0,0 +1,27 @@
# $NetBSD: asoundrc.example,v 1.1 2021/11/28 06:42:46 pho Exp $
# We can't just use "type oss" for pcm.!default because
# alsa-plugins-oss doesn't support FLOAT_NE, which Firefox uses. See
# https://mail-index.netbsd.org/pkgsrc-users/2017/02/10/msg024431.html
pcm.oss {
type oss
}
pcm.!default {
type plug
slave {
pcm oss
format S16_LE
}
hint {
show {
@func refer
name defaults.namehint.basic
}
description "Open Sound System"
}
}
ctl.!default {
type oss
}