Re: Question about writing an ASF file




"Jeremy Noring" <JeremyNoring@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im
Newsbeitrag news:87C8E3FE-4A2B-43A5-9C38-9BF9B02AF716@xxxxxxxxxxxxxxxx
> "Jeff Smart" wrote:
>
> Do you launch any threads from your application, and do you call
> CoInitialize on those threads? You have to initialize/de-initialize COM
on
> every launched thread. See my site for a class that helps with that.


Thank you very much for this hint. Indeed this changed a lot in
the right direction. It seems to me that the missing COM
initialization calls inside my worker thread were responsible
for the unexpected malfunction. Good to know that a global
COM initialization is not suffucient.

Unfortunately the output data is still not correct.
Actually the output file contains the complete sound data but
the result is twice as long and the sound plays back correctly
only for 5-7 seconds.
After that period of time the pitch decreases slowly (in about 2 seconds)
about 50% and stays on that level until the end of the sound.

Any clue what might be responsible for that?


> That being said, how are you configuring the writer? What input type are
> you specifying?

1. I create an Audio profile 96KBit 44.1 KHz Stereo.
2. I create a Writer with WMCreateWriter()
3. I set the profile with pWriter->SetProfile()


> --
> My Site (under construction): http://deepsea.no-ip.com/AV/


.



Relevant Pages

  • Re: static props and methods = global variables??
    ... > I'd like to set (on launch) and then keep some AppDomain-wide variables. ... after initialization, then there's no problem. ... johnwsaundersiii at hotmail ...
    (microsoft.public.dotnet.framework)
  • Re: depend and launch in init registry
    ... Did you even look in the Platform Builder help? ... LaunchXX tells the order to launch these applications, ... > run after the video driver finishes its initialization. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Odd problem
    ... This sounds like an initialization problem in the component. ... initializes something and forgets to finalize it, so on next launch it tries ... and Im not really sure its an Indy issue this one. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Crysis - Weird Delay/Lag
    ... Installation of KB940105 hotfix required: ... Stream Engine Initialization ... Sound - initializing AudioDevice now! ... Sound - available drivers: ...
    (comp.sys.ibm.pc.games.action)
  • Re: [Alsa-devel] 2.6.15-rc6: boot failure in saa7134-alsa.c
    ... Sergey points out that sound/core/sound.c probably needs ... Sound people, can you pls check the dependencies? ... "sound core" initialization that needs to happen early? ... >> That should make sure that the sound core gets to initialize before normal ...
    (Linux-Kernel)

Quantcast