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=
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
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
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
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
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 return (n /
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)
+{
+