Re: Audio Recording: .wav File Never Gets Created

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Fabricio (Fabricio_at_discussions.microsoft.com)
Date: 02/23/05


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



Relevant Pages

  • Re: Creating a speaking tapi application
    ... Please suggest how to use terminals and streams to make real time ... Now I want to play that audio with speaker instead of recording. ... Matthias Moetje wrote: ... render stream is started (the other stream will fail because 99% ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Creating a speaking tapi application
    ... Please suggest how to use terminals and streams to make real time ... Now I want to play that audio with speaker instead of recording. ... earlier date that perhaps I could monitor the incoming stream and attempt ... CComPtr pEnumAddress; ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Creating a speaking tapi application
    ... "841712 - Telephony Application Programming Interface ... you need to stop one stream and start the other stream ... Please suggest how to use terminals and streams to make real time ... Now I want to play that audio with speaker instead of recording. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Creating a speaking tapi application
    ... I thought of enumerating streams and terminals and assign them ... When i comment any one of the start stream it works in only one ... Don't use the wave API but instead use TAPI3 media streaming ... Now I want to play that audio with speaker instead of recording. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Creating a speaking tapi application
    ... Now I want to play that audio with speaker instead of recording. ... It is called terminals because when we talk about video streams ... earlier date that perhaps I could monitor the incoming stream and attempt ... CComPtr pEnumAddress; ...
    (microsoft.public.win32.programmer.tapi)