Mail Archives: djgpp/1995/07/21/06:11:29
As part of trying to get my PC to make speech (on its speaker, not over a
net) (it has a Sound Blaster), I compiled and ran DJGPP\CONTRIB\SBLASTER\SB.C.
The first attempt (`gcc sb.c -lpc') produced this:-
In file included from sb.c:24:
proto.h:2: conflicting types for `disable'
c:/djgpp/include/dos.h:83: previous declaration of `disable'
proto.h:3: conflicting types for `enable'
c:/djgpp/include/dos.h:82: previous declaration of `enable'
so I made a copy with `disable' and `enable' replaced by `Disable' and
`Enable' right through. This compiled OK. I prefixed GO32.EXE to its A.OUT to
produce SB.EXE, which I ran `SB BRASS2.SAM 11000'. This produced three
definitely brass-instrument-type but rough and only pop concert quality
musical notes, and then hung. It also output this text on screen:-
Unknown BLASTER option H
Unknown BLASTER option P
real mode callback is at 20ce:5ba7
dos buffer at 0x6f00:0
DMA buffers at physical 0x70000 and 0x80000
I/O addr = 220, IRQ = 5, DMA channel = 1
Breaking in with ctrl-C produced merely this on the trace output:-
====================
Ctrl-C Hit! Stopped at address e47
and no stack or address info.
............................................
Compiling with `-Wall' produced this warning:-
warning: int format, long int arg (arg 2)
for the line
printf("Unable to allocate dos memory - max size is %d\n", dosmem.size);
in function `sb_init_buffers'.
- Raw text -