Prev Previous Post   Next Post Next
Old 30th September 2002, 12:36   #14
Ilitirit
Junior Member
 
Join Date: Nov 2001
Posts: 27
Quote:
Originally posted by soundsys
Hi

Yup , you should initialize all to NULL.

To choose an output :
code:

if (Out) api->service_release(Out);
Out=0;
n=api->service_getNumServices(WaSvc::MEDIACONVERTER);


for(int m=0;m<n && !Out;m++) {
Out=castService<svc_mediaConverterI>(api->service_enumService(WaSvc::MEDIACONVERTER,m));
if (STRCMP(Out->getConverterTo(),"OUTPUT:DirectSound")) {
api->service_release(Out);
Out=0;

}
}


Plus check new examples from Peter ...

And things go on...
phew!!! after spending a LOT of debugging i finally understand why i couldn't get the output converter to work. i had to settle for peter's new PCM WaveOut component and
code:

if (STRCMP(Out->getConverterTo(),"OUTPUT:waveOut")


admittedly it was something i should have spotted earlier but i'm still a n00b at this
At least now I can utilize both cores in my component so i can play 2 files at the same time independently

one problem i'm having is that the setCallback() method is never being called by the api, which means the spreader property is always NULL. any idea why this is happening?
Ilitirit is offline  
 
Go Back   Winamp & Shoutcast Forums > Winamp3 > Wasabi Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump