Link to home
Start Free TrialLog in
Avatar of Sunny040797
Sunny040797

asked on

TAPI: Playing Wave Files

I have solved the question myself. Thanx for the replies anyway.

---------------------------------------------------------
I am writing a program with TAPILINE.OCX available free
from http://www.iac.net/~mamund/mstdg/index.htm

What it does is to:
1. Dial a number
2. After "Please leave your message after the tone." on the
   receiving end,
3. I would like to play a wave file to be recorded over at    the receiving end.

Problem is I DO NOT want to use any 3rd party components, but would like to use the low-level APIs to play the wave files.

However, how do I play the wave file and direct it to the output line of my PhoneBlaster, instead of just to my speakers? Anyone with a STEP-by-STEP solution? or a GOOD example?
ASKER CERTIFIED SOLUTION
Avatar of jannea
jannea

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jannea
jannea

Sorry i think i did read your Q to fast, i guess that's not the anwer  you did wanna get.

/Janne
Avatar of Sunny040797

ASKER

Thanks for replying! Jannea, your answer is correct as far as I am not using the TAPI (telephony APIs). What you suggested will only play the sound to the speakers, not through the telephone line.

Anyway, I have already solved the problem. I did it by rerouting the sound blaster path to the TAPI line. Then any wave i play will go through the phone line via Extended TAPI.
Edited text of question
Bought This Question.
Hi Sunny, I am currently working on a project which also needs to play a wave file over a phone line through a modem. Is it possible for you to send me some sample code as to how you rerouted the sound blaster path to the tapi line? I tried accessing the webpage you mentioned but it doesnt exist. Thanks.