Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Waveform audio API Programming Model wanted !!

0 views
Skip to first unread message

ALOPOE

unread,
Jan 26, 1997, 3:00:00 AM1/26/97
to
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.
 
 
                                                                                    &nb ALOPOE
                                                                                    &nb
                                                                                    &nb 26/01/1997
 

Anthony M. Merton

unread,
Jan 27, 1997, 3:00:00 AM1/27/97
to

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. Playing it to /
from the handset implies using *phone* functions instead of *line*
functions before sending / receiving the wave file.
With a careful look at the source files, you should be able to figure it
out.
Hope that helps
Anthony

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
>
>

Anthony M. Merton

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

In the mytapi_.c source, you have to add a line in the telephonyInitialize
function
as :

// 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
>
>

Bruce Pennypacker [MVP]

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

Anthony M. Merton <u...@dial.eunet.ch> wrote in article
<01bc11f6$734d8b20$f0260a0a@pcame>...

> In the mytapi_.c source, you have to add a line in the
telephonyInitialize
> function
> as :
>
> // 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.

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

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

Bruce Pennypacker [MVP]

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

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


ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to

ALOPOE

unread,
Feb 3, 1997, 3:00:00 AM2/3/97
to
0 new messages