Fix 24/32-bits output support. From MAINTAINER.

This commit is contained in:
juanfra 2016-09-23 23:08:36 +00:00
parent e2f055f161
commit b881f8a22f
2 changed files with 32 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2016/09/12 11:45:57 naddy Exp $
# $OpenBSD: Makefile,v 1.13 2016/09/23 23:08:36 juanfra Exp $
COMMENT-main= ncurses-based music player
COMMENT-ffmpeg= ffmpeg input plugin for cmus (.aac, .mp4...)
@ -7,6 +7,7 @@ V= 2.7.1
DISTNAME= cmus-${V}
PKGNAME-main= ${PKGNAME}
PKGNAME-ffmpeg= cmus-ffmpeg-${V}
REVISION= 0
GH_ACCOUNT= cmus
GH_PROJECT= cmus
@ -78,7 +79,7 @@ WANTLIB-main+= vorbis>=0 vorbisfile>=1
NO_TEST= Yes
pre-configure:
pre-build:
sed -i s,/usr,${LOCALBASE}, ${WRKSRC}/Doc/cmus.txt
sed -i s,doc/cmus/examples,examples/cmus, ${WRKSRC}/Doc/cmus.txt

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-sndio_c,v 1.1 2016/09/23 23:08:36 juanfra Exp $
Support 32-bit/24-bit encoding
84f33584be91 upstream
--- sndio.c.orig Mon Jul 13 12:00:56 2015
+++ sndio.c Thu Sep 22 18:54:45 2016
@@ -20,7 +20,6 @@
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/audioio.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
@@ -82,6 +81,12 @@ static int sndio_set_sf(sample_format_t sf)
par.le = 1;
switch (sf_get_bits(sndio_sf)) {
+ case 32:
+ par.bits = 32;
+ break;
+ case 24:
+ par.bits = 24;
+ break;
case 16:
par.bits = 16;
break;