Re: update: audio/cmu-sphinxbase

2019-04-23 Thread Anthony J. Bentley
Hi Stefan, Stefan Sperling writes: > -VERSION= 0.6 > +# Yes, upstream recommends this "prealpha" release. > +# Which, by the way, is also shipped in Debian stable... > +VERSION= 5prealpha > +EPOCH= 0 5 is greater than 0.6, so this doesn't need EPOCH. > DISTNAME=sphinxb

update: audio/cmu-sphinxbase

2019-04-23 Thread Stefan Sperling
This updates cmu-sphinxbase to the latest recommended release. Yes, this recommended release is numbered "5prealpha" which deviates from the numbering scheme used by previous releases. I cannot explain this. But even Debian stable ships this release. I'll send out a corresponding diff for cmu-sph

Re: UPDATE: audio/cmu-sphinxbase

2010-04-22 Thread Eric Faurot
On Thu, Apr 22, 2010 at 10:53:38AM +0200, Eric Faurot wrote: > + n = sio_read(hdl, b, max * BPS); > + while (n % BPS) { > + t = sio_read(hdl, b + n, n % BPS); > + if (t == 0) > + return AD_ERR_GEN; > + n += t; > + } Duh! I failed

Re: UPDATE: audio/cmu-sphinxbase

2010-04-22 Thread Eric Faurot
Hi, Here is a new diff, with fixes from ratchov@ and jakemsr@ (thanks). Eric. Index: Makefile === RCS file: /cvs/ports/audio/cmu-sphinxbase/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile16 Jul 2009 09:05:

Re: UPDATE: audio/cmu-sphinxbase

2010-04-21 Thread Alexandre Ratchov
On Wed, Apr 21, 2010 at 04:32:17PM +0200, Eric Faurot wrote: > Hi, > > - update to 0.6 > - implement sndio backend and get rid of ossaudio > > comments? ok? > Great! Few comment inlined below: > + > +#define bPS 16 > +#define BPS 2 > + > +ad_rec_t * > +ad_open_dev(const char *dev, int32 rate

Re: UPDATE: audio/cmu-sphinxbase

2010-04-21 Thread Eric Faurot
On Wed, Apr 21, 2010 at 04:32:17PM +0200, Eric Faurot wrote: > +int32 > +ad_read(ad_rec_t *r, int16 *buf, int32 max) > +{ > + size_t n; > + struct sio_hdl *hdl = (struct sio_hdl*)r; > + > + n = sio_read(hdl, buf, max * BPS); > + return (n / 2); > +} ooops, I mean "retur

UPDATE: audio/cmu-sphinxbase

2010-04-21 Thread Eric Faurot
Hi, - update to 0.6 - implement sndio backend and get rid of ossaudio comments? ok? Eric Index: Makefile === RCS file: /cvs/ports/audio/cmu-sphinxbase/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile16 Jul