Re: Audio Recording: .wav File Never Gets Created
From: Fabricio (Fabricio_at_discussions.microsoft.com)
Date: 02/23/05
- Next message: Carlo: "Re: TAPI ports"
- Previous message: Andreas Marschall [MVP TAPI]: "Re: TAPI ports"
- In reply to: Matthias Moetje: "Re: Audio Recording: .wav File Never Gets Created"
- Next in thread: Matthias Moetje: "Re: Audio Recording: .wav File Never Gets Created"
- Reply: Matthias Moetje: "Re: Audio Recording: .wav File Never Gets Created"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Feb 2005 09:01:09 -0800
I ran with your idea and removed all the code (in the FileTerm Demo) that
dealth with setting up, starting, and running the FileRecordTerminal. I was
only using the FilePlaybackTerminal. This didn't work--same error as before.
So I took a step back and tried using GetDefaultStaticTerminal to create a
static audio terminal. Both the capture and render terminals worked fine. I
was able to hear the call's audio on my speakers and could transmit my voice
via microphone.
I can create static terminals, no problem; but fail to create any dynamic
terminals.
Could this be a device limitation? Before setting up any static or dynamic
terminals I enumerated the address object's static terminals using
EnumerateStaticTerminals and found two wave terminals. I also tried
enumerating the dynamic terminal classes, using
EnumerateDynamicTerminalClasses, and found nothing--the list was empty.
Should this list contain supported classes or is this telling me that my
modem/driver does not support dynamic terminals?
Thanks for helping out.
-Fabricio
fguzman_slotown@yahoo.com
"Matthias Moetje" wrote:
> Hi Fabricio,
>
> most probably you are just experiencing the old problem that
> unimodem TSP is half duplex. You cannot record while you
> are running a playback stream.
>
> Before recording you need to:
>
> - Stop playback stream (render stream)
> - Start recording stream (capture stream)
>
> Then you should be able to record. Please note: All streams
> are automatically started once the connection is established
> and if a terminal is selected on a stream. Which of the streams
> automatically gets started in a half-duplex scenario is probably
> undefined (don't know for sure). You call the stop method
> on streams even before a connection is made which will result
> in no stream starting automatically.
> Starting streams can take some time, so (in case you want to
> playback first and record then) I would suggest to
>
> - stop the capture stream before connect.
> - playback your message after connect
> - stop render stream
> - start capture stream
> - start recording
>
>
> Best regards,
>
> Matthias Moetje
> -------------------------------------
> TERASENS GmbH
> Ackermannstraße 3
> 80797 München
> -------------------------------------
> Fon: +49 89 143370-0
> Fax: +49 89 143370-22
> e-mail: moetje at terasens dot de
> www: www.terasens.de
> -------------------------------------
>
>
>
> "Fabricio" <Fabricio@discussions.microsoft.com> wrote in message
> news:2229AF79-6C38-403B-B39F-6534C67D456E@microsoft.com...
> > > What device / TSP are you using?
> > I'm using the modem blaster DI5633 and it uses unimdm.tsp, which I assume
> is
> > the standard unimodem driver.
> >
> > > What OS/SP are you using?
> > I'm running Windows XP Home Edition SP2.
> >
> > In the FileTerm Demo, the CallMediaEvent receives a CME_STREAM_FAIL event
> > soon after the PlayFileTerminal gets created and selected. Here's the
> > sequence of events:
> >
> > -Waiting for call
> > -Call received
> > -PlayFileTerminal created and selected
> > -Call answered and connected
> > -CallMediaEvent receives the CME_STREAM_FAIL event.
> >
> > One more note, the modem's address object shows a MediaSupport value of
> > 0x18, which equates to "TAPIMEDIATYPE_AUDIO | TAPIMEDIATYPE_DATAMODEM".
> >
> > Once again, thanks for all the help.
> > -Fabricio
> > fguzman_slotown@yahoo.com
> >
> >
> > "Andreas Marschall [MVP TAPI]" wrote:
> >
> > > "Fabricio" <Fabricio@discussions.microsoft.com> schrieb im Newsbeitrag
> > > news:1ADE4205-0ED8-4EDC-AC1E-B3952B3B55B3@microsoft.com...
> > > > Andreas,
> > > >
> > > > Much appreciate the response.
> > >
> > > Fabricio, you are welcome.
> > >
> > > > I compiled and ran the FileTerm demo and had similar results. With
> > > > FileTerm, the calling party doesn't hear the welcome.wav and the
> caller's
> > > > message never gets recorded; however, the demo has no problem
> connecting and
> > > > disconnecting.
> > > >
> > > > I'm starting to think it's a version issue. Why? Well it's too
> > > > coincidental that both apps (mine and FileTerm) experience similar
> symptoms
> > > > with file terminals and yet have no quarrels connecting and
> disconnecting a
> > > > call. The file terminal functions use TAPI 3.1 while the call
> handling
> > > > functions uses TAPI 3.0.
> > > >
> > > > There seems to be some compatibility issue with TAPI 3.1, especially
> with
> > > > media functions like ITMediaRecord or ITMediaPlayback.
> > >
> > > What device / TSP are you using?
> > > What OS/SP are you using?
> > >
> > > --
> > > Best Regards
> > > Andreas Marschall
> > > Microsoft MVP for TAPI / Windows SDK
> > > TAPI / TSP Developer and Tester
> > > http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
> > > * 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.
> > >
> > >
> > >
>
>
>
- Next message: Carlo: "Re: TAPI ports"
- Previous message: Andreas Marschall [MVP TAPI]: "Re: TAPI ports"
- In reply to: Matthias Moetje: "Re: Audio Recording: .wav File Never Gets Created"
- Next in thread: Matthias Moetje: "Re: Audio Recording: .wav File Never Gets Created"
- Reply: Matthias Moetje: "Re: Audio Recording: .wav File Never Gets Created"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|