ALOPOE <cyt...@speednet.net> wrote in article
<32EB7A...@speednet.net>...
> Dear folk,
>
> Can anyone tell me more about the programming model of Waveform
> audio API (Wave API, i.e waveInOpen()..... ) which can help
> me to playback / record sound from / to the handset. Now I want an
> example that can playback / record sound in a local machine using
> sound., thanks.
>
>
>
> ALOPOE
>
>
> 26/01/1997
>
>
// check every logical line for one that support modem data
for (i=0; (unsigned)i<mytapi.dwNumLines; i++) {
...
// get line device caps
==> mytapi.dwLine = i; // add this line
lrc = mylineGetDevCaps ();
...
because mylineGetDevCaps uses mytapi.dwLine which is not initialized
without that extra line. If you have more than one serial line device (such
as a modem + the direct cable) and the modem is second in the list,
mylineGetDevCaps will not report correctly ie. it will always get the
capabilities of the direct cable interface, which obviously doesn't support
automated voice
Cheers
Anthony
PS : If someone gets it to work with a usr 33.6 voice, please send me an
email. I can get no sound down the line.
Bruce Pennypacker [MVP] <penny...@altech.com.nospam> wrote in article
<01bc11ea$45583780$7340eace@cape-d>...
> Anthony M. Merton <u...@dial.eunet.ch> wrote in article
> <01bc0c33$94a862e0$f0260a0a@pcame>...
> > Somewhere on the ftp.microsoft.com server there is the code for the
> samples
> > of the MSJ August 96 edition.
> > In there, you'll find an app that is a TAPI answering machine that does
> > playback / record messages using the wave API to the line.
>
> FYI, I just found the source code Anthony mentioned. For those of you
who
> are interested in voice support under TAPI I'd suggest downloading and
> looking at this code. You can find it at:
>
> ftp://ftp.microsoft.com/developr/MSJ/MSJAug96.zip
>
> Unzip this and you'll find a file called "Voice Modem.zip". Unzip that
and
> you've got the VC++ source code for the TAPI answering machine. I
> personally haven't tried this yet since I currently don't have a
voicemodem
> installed, but it's yet another good TAPI sample program, and
specifically
> one that shows the interaction between TAPI and wave devices.
>
> --
> Bruce Pennypacker Applied Language
Technologies
> Remove .nospam from my address to e-mail me 215 First Street
> (617) 225-0012 Cambridge, MA 02142
>
>
Anthony,
Thanks for the heads-up. I'm going to forward this to some MS people in
the hopes that they'll add the missing code and also see if they can put
the sample in the TAPI ftp directory so people will be able to find it
easier.
-Bruce
FYI, I just found the source code Anthony mentioned. For those of you who
are interested in voice support under TAPI I'd suggest downloading and
looking at this code. You can find it at:
ftp://ftp.microsoft.com/developr/MSJ/MSJAug96.zip
Unzip this and you'll find a file called "Voice Modem.zip". Unzip that and
you've got the VC++ source code for the TAPI answering machine. I
personally haven't tried this yet since I currently don't have a voicemodem
installed, but it's yet another good TAPI sample program, and specifically
one that shows the interaction between TAPI and wave devices.
--
Bruce Pennypacker Applied Language Technologies
Remove .nospam from my address to e-mail me 215 First Street
(617) 225-0012 Cambridge, MA 02142