Article View: borland.public.cppbuilder.nativeapi
Article #968Re: BCB and SAPI v5
From: Darko Miletic
Date: Thu, 22 Nov 2007 16:22
Date: Thu, 22 Nov 2007 16:22
27 lines
2117 bytes
2117 bytes
Marc wrote:
> In order to reduce compelexity I took the code out of the SPBindToFile
> function and put it directly into my code:
>
> hr = CoCreateInstance( CLSID_SpStream, NULL, CLSCTX_ALL, IID_ISpStream,
> (void **)&cpStream);
> if (SUCCEEDED(hr))
> {
> hr = cpStream->BindToFile(WideString("c:\\test.wav"), SPFM_CREATE_ALWAYS,
> &cAudioFmt.FormatId(), cAudioFmt.WaveFormatExPtr(), SPFEI_ALL_EVENTS);
> if (FAILED(hr))
> {
> cpStream->Release();
> cpStream = NULL;
> }
> }
>
> Now I am sure that the cpStream is created, but the call to
> cpStream->BindToFile still fails with E_INVALIDARG.
> So the problem must be with the cAudioFmt...
Could you send me your project files using mail address from this
message. I'm interested in checking this out and updating accordingly
bccsdk. We can continue discussion over mail.
Thanks,
Darko
Technical Details
Message-ID:
<4745aca9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<47446f75$1@newsgroups.borland.com> <47449cae@newsgroups.borland.com> <4744a4e3$1@newsgroups.borland.com> <4744b412$1@newsgroups.borland.com> <474564ea$1@newsgroups.borland.com> <47457331@newsgroups.borland.com> <474586a2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,67677465280073fd X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 22 Nov 2007 13:22:02 -0300 From: Darko Miletic <kiklop@fibertel.com.ar> Reply-To: Darko Miletic <kiklop@fibertel.com.ar> User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: BCB and SAPI v5 References: <47446f75$1@newsgroups.borland.com> <47449cae@newsgroups.borland.com> <4744a4e3$1@newsgroups.borland.com> <4744b412$1@newsgroups.borland.com> <474564ea$1@newsgroups.borland.com> <47457331@newsgroups.borland.com> <474586a2@newsgroups.borland.com> In-Reply-To: <474586a2@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 071121-0, 21/11/2007), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 200.49.157.163 Message-ID: <4745aca9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1195748521 200.49.157.163 (22 Nov 2007 08:22:01 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail