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?