audio/sidplay: fix sndio output (apparently never tested)
This commit is contained in:
parent
2f2499611b
commit
1ccfd9e508
|
@ -2,7 +2,7 @@ COMMENT= Commodore 64 music player and SID chip emulator
|
|||
|
||||
DISTNAME= sidplay-base-1.0.9
|
||||
PKGNAME= ${DISTNAME:S/-base//}
|
||||
REVISION = 6
|
||||
REVISION = 7
|
||||
CATEGORIES= audio
|
||||
|
||||
# GPL
|
||||
|
@ -21,6 +21,8 @@ CONFIGURE_STYLE= gnu
|
|||
CONFIGURE_ARGS= --with-sidplay-includes=${LOCALBASE}/include \
|
||||
--with-sidplay-library=${LOCALBASE}/lib
|
||||
|
||||
REORDER_DEPENDENCIES= ${PORTSDIR}/infrastructure/mk/automake.dep
|
||||
|
||||
post-extract:
|
||||
@mkdir -p ${WRKSRC}/audio/sndio
|
||||
@cp ${FILESDIR}/audiodrv.cpp ${WRKSRC}/audio/sndio
|
||||
|
|
|
@ -29,10 +29,9 @@ bool audioDriver::Open(udword inFreq, int inPrecision, int inChannels,
|
|||
frequency = inFreq;
|
||||
channels = inChannels;
|
||||
precision = inPrecision;
|
||||
encoding = retpar.sig ? SIDEMU_SIGNED_PCM : SIDEMU_UNSIGNED_PCM;
|
||||
|
||||
sio_initpar(&askpar);
|
||||
if (precision == SIDEMU_8BIT)
|
||||
if (precision == SIDEMU_16BIT)
|
||||
{
|
||||
askpar.le = SIO_LE_NATIVE;
|
||||
askpar.bits = 16;
|
||||
|
@ -60,6 +59,7 @@ bool audioDriver::Open(udword inFreq, int inPrecision, int inChannels,
|
|||
goto bad_close;
|
||||
}
|
||||
blockSize = retpar.round;
|
||||
encoding = retpar.sig ? SIDEMU_SIGNED_PCM : SIDEMU_UNSIGNED_PCM;
|
||||
|
||||
if (!sio_start(hdl))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue