Re: SFX2 - Detection
- Posted by Jacques Deschenes <desja at QUEBECTEL.COM> Jun 21, 1997
- 849 views
At 20:21 97-06-21 +0000, you wrote: >The new detect.ex told me this: > >------------------------------------------------- >SoundCard detected at base addres 220h > >DSP-Version is 3.01 >8 Bits DMA Channnel is 1 >Failed to detect irq >-------------------------------------------------- is this possible that your sound card IRQ be different from one of these 1,3,7,10 detect only test those one. >What about forcing the configuration... >Or check the SET BLASTER environment thing? >If you can't guess the IRQ, or the soundblaster dsp version is too >low, try the card at the values specified by the blaster thing, and >if it isn't there too, then you can say ... ..not detected >And have an detection routine, i maybe don't want to search for a >soundcard right away, what about something like this: Currently SFX2.E doesn't detect the sound card it read the BLASTER environment variable and if not found set iSbCardError variable. So to use sfx2.e your BLASTER environment should be set to the rigth values Your program should always check for iSbCardError before calling any sound routine. if iSbCardError is zero the your program can use the sound card else there is an error and it can't. Error messages are available in global constant ERROR_MESSAGES which is a sequence indexed by iSbCardError I will activate the detection code when it will be debugged. Regards, Jacques Deschenes Baie-Comeau, Quebec Canada desja at quebectel.com