Set defaults to more realistic values (128 max chans, 48kHz rate), as

explained by upstream developers.
ok brad
This commit is contained in:
ratchov 2013-03-16 10:56:30 +00:00
parent efd9e1b7d7
commit 7052d6066b
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.14 2013/03/12 00:59:50 brad Exp $
# $OpenBSD: Makefile,v 1.15 2013/03/16 10:56:30 ratchov Exp $
COMMENT= portable cross-platform audio API
@ -6,6 +6,7 @@ DISTNAME= portaudio-svn-1851
CATEGORIES= audio
MASTER_SITES= http://comstyle.com/source/
EXTRACT_SUFX= .tar.xz
REVISION= 0
SHARED_LIBS= portaudio 1.0

View File

@ -294,7 +294,7 @@ OpenStream(struct PaUtilHostApiRepresentation *hostApi,
DPR("OpenStream: mode = %x, trying rate = %u\n", mode, par.rate);
hdl = sio_open(NULL, mode, 0);
hdl = sio_open(SIO_DEVANY, mode, 0);
if (hdl == NULL)
return paUnanticipatedHostError;
if (!sio_setpar(hdl, &par)) {
@ -659,13 +659,13 @@ PaSndio_Initialize(PaUtilHostApiRepresentation **hostApi, PaHostApiIndex hostApi
info->structVersion = 2;
info->name = "default";
info->hostApi = hostApiIndex;
info->maxInputChannels = 65536;
info->maxOutputChannels = 65536;
info->maxInputChannels = 128;
info->maxOutputChannels = 128;
info->defaultLowInputLatency = 0.01;
info->defaultLowOutputLatency = 0.01;
info->defaultHighInputLatency = 0.5;
info->defaultHighOutputLatency = 0.5;
info->defaultSampleRate = 192000;
info->defaultSampleRate = 48000;
sndioHostApi->infos[0] = info;
*hostApi = &sndioHostApi->base;