Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Playback over modem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Aliassce  
View profile  
 More options Oct 30, 9:14 am
Newsgroups: microsoft.public.win32.programmer.tapi
From: Aliassce <Alias...@discussions.microsoft.com>
Date: Thu, 29 Oct 2009 15:14:04 -0700
Local: Fri, Oct 30 2009 9:14 am
Subject: Playback over modem
Hi,
For months I have tried to dial a number and play a wav file using this
connection. I have tried Julmar's ITAPI and also Tapi3lib.
I can call the number but I can not create a terminal. Using Julmar's api I
try;

 TCall
myCall=MyAddress.CreateCall("0",LINEADDRESSTYPES.PhoneNumber,TAPIMEDIATYPES .AUDIO)
TTerminal t=myCall.RequestTerminal(TTerminal.FilePlaybackTerminal,
TAPIMEDIATYPES.AUDIO, TERMINAL_DIRECTION.TD_RENDER)

in this code TTerminal object always returns null.

Before that I tried using Tapi3Lib directly;

         ITAddress oAddress;      
         ITMediaSupport ims = (ITMediaSupport)oAddress;
         ITTerminalSupport its = (ITTerminalSupport)ims;  //Error

When I try to crate ITTerminalSupport I get "unable to assign... Such an
interface isn't supported" error.

I'm using Agere Systems HDA modem. As I said I got no problem calling. Is
the problem about my modem's audio support? I also tried the codes on a few
laptops and I got same errors.

Thanks in advance
Halil


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mahyar  
View profile  
 More options Oct 31, 6:43 pm
Newsgroups: microsoft.public.win32.programmer.tapi
From: Mahyar <Mah...@discussions.microsoft.com>
Date: Sat, 31 Oct 2009 00:43:01 -0700
Local: Sat, Oct 31 2009 6:43 pm
Subject: RE: Playback over modem
Hi,
I use below code, and can Play wav file via phone line:

private void btnPlay_Click(object sender, EventArgs e)
        {
            Object[] playList = { "C:\\myfile.wav" };
            ITTerminal PLyTerminal=
bcc.RequestTerminal(TAPI3Lib.TapiConstants.CLSID_String_FilePlaybackTermina l,
TapiConstants.TAPIMEDIATYPE_MULTITRACK, TERMINAL_DIRECTION.TD_CAPTURE);
            ITMediaPlayback MediaPlay=(ITMediaPlayback)PLyTerminal;
            MediaPlay.PlayList = playList;
            ITMediaControl MediaControl = (ITMediaControl)MediaPlay;
            bcc.SelectTerminalOnCall(PLyTerminal);
            MediaControl.Start();
        }

and use below code for dial:
private void btnCall_Click(object sender, EventArgs e)
        {
           bcc = (ITBasicCallControl2)ln.CreateCall(textBox1.Text,
TapiConstants.LINEADDRESSTYPE_PHONENUMBER, TapiConstants.TAPIMEDIATYPE_AUDIO);

            bcc.Connect(false);
            }

note: ITBasicCallControl2 bcc;


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Marschall [exMVP TAPI]  
View profile  
 More options Oct 31, 8:12 pm
Newsgroups: microsoft.public.win32.programmer.tapi
From: "Andreas Marschall [exMVP TAPI]" <Andreas.Marsch...@I-B-A-M.de>
Date: Sat, 31 Oct 2009 10:12:43 +0100
Local: Sat, Oct 31 2009 8:12 pm
Subject: Re: Playback over modem
"Aliassce" <Alias...@discussions.microsoft.com> schrieb im Newsbeitrag
news:6A6ACB7B-2510-4231-8F6B-2D48E4041B3C@microsoft.com...

> When I try to crate ITTerminalSupport I get "unable to assign... Such an
> interface isn't supported" error.

> I'm using Agere Systems HDA modem. As I said I got no problem calling. Is
> the problem about my modem's audio support? I also tried the codes on a
> few
> laptops and I got same errors.

Halil,
are you using a voice modem or only a fax/data modem?
The latter won't work for this.

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My TotoŽ Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion.  Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no
rights.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aliassce  
View profile  
 More options Oct 31, 10:35 pm
Newsgroups: microsoft.public.win32.programmer.tapi
From: Aliassce <Alias...@discussions.microsoft.com>
Date: Sat, 31 Oct 2009 04:35:01 -0700
Local: Sat, Oct 31 2009 10:35 pm
Subject: Re: Playback over modem
Thanks for replies
Mahyar's code gives error at "Invalid Cast"
ITTerminal PLyTerminal=
bcc.RequestTerminal(TAPI3Lib.TapiConstants.CLSID_String_FilePlaybackTermina l,
TapiConstants.TAPIMEDIATYPE_MULTITRACK, TERMINAL_DIRECTION.TD_CAPTURE);

And For Andreas's question. How can I understand if a modem supports voice

Thanks & Regards


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Marschall [exMVP TAPI]  
View profile  
 More options Nov 1, 2:35 am
Newsgroups: microsoft.public.win32.programmer.tapi
From: "Andreas Marschall [exMVP TAPI]" <Andreas.Marsch...@I-B-A-M.de>
Date: Sat, 31 Oct 2009 16:35:55 +0100
Local: Sun, Nov 1 2009 2:35 am
Subject: Re: Playback over modem
"Aliassce" <Alias...@discussions.microsoft.com> schrieb im Newsbeitrag
news:FFF7B8EB-6F30-4001-A43C-2A2D94100B71@microsoft.com...

> Thanks for replies

Halil, you are welcome.

> And For Andreas's question. How can I understand if a modem supports voice

You may want to try my TotoŽ Tool WaveDevice and see whether it reports any
wave devices (in / out) associated wih your modem:
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm#_TotoŽ_Tool_WaveDevice
If i doesn't then your modem isn't (installed as) a voice modem.

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My TotoŽ Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion.  Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no
rights.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aliassce  
View profile  
 More options Nov 1, 8:39 am
Newsgroups: microsoft.public.win32.programmer.tapi
From: Aliassce <Alias...@discussions.microsoft.com>
Date: Sat, 31 Oct 2009 14:39:02 -0700
Local: Sun, Nov 1 2009 8:39 am
Subject: Re: Playback over modem

Thanks a lot. As I was afraid my modem is not a voice modem.
I spent so much time to make it play a soud file :)


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google