🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #969

Re: BCB and SAPI v5

#969
From: Marc
Date: Thu, 22 Nov 2007 18:52
32 lines
2160 bytes
Done...

"Darko Miletic" <kiklop@fibertel.com.ar> schrieb im Newsbeitrag 
news:4745aca9@newsgroups.borland.com...
> 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: <4745d020@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
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> <4745aca9@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
Reply-To: "Marc" <info@mawnet.com>
From: "Marc" <info@mawnet.com>
Newsgroups: borland.public.cppbuilder.nativeapi
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> <4745aca9@newsgroups.borland.com>
Subject: Re: BCB and SAPI v5
Date: Thu, 22 Nov 2007 19:52:09 +0100
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 83.76.36.137
Message-ID: <4745d020@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1195757600 83.76.36.137 (22 Nov 2007 10:53:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail