| jpff@maths.bath.ac.uk wrote:
> Gabriel> I also fixed a little bug in John Fitch's WAVE driver: it not allowed
> Gabriel> stereo output in realtime.
>
> Now that is a remark on which I do wish to comment. If you have a bug
> fix why keep it to yourself?
> ==John
Steven Curtin wrote:
> I join John in requesting that Gabriel at least share his WAV stereo bug fix with us.
> Steven Curtin
The bug is in the opening wave device point.
the fix for stereo WAVE OUT consists of commenting or removing line 357
of "official" rtaudio.c file (in CWIN conditional compilation) i.e.:
/* wavform.wBitsPerSample *= nchnls; */ /* GAB FIX: sample concept
differs from frame concept*/
that's all for stereo wav output in realtime (or at least I believe so).
there is another bug in -z flag implementation:
in the list_opcode() function (file OPCODE.C) you must replace:
struct sortable *table =
(struct sortable*)malloc((oplstend-opcodlst)/sizeof(OENTRY));
with:
struct sortable *table =
(struct sortable*)malloc((oplstend-opcodlst)*sizeof(struct sortable));
or you can incur in an access violation error
also there is another bug in -- flag (logging output to file):
the correct err_printf() function (in MAIN.C file) should be:
void err_printf(char *fmt, ...)
{
va_list a;
va_start(a, fmt);
vfprintf(stderr, fmt, a);
va_end(a);
if (dribble != NULL) {
va_start(a, fmt); /* gab */
vfprintf(dribble, fmt, a);
va_end(a);
}
}
or the program crash.
that's all folks!
--
Gabriel Maldonado
mailto:g.maldonado@agora.stm.it |