SFX2 - Detection

new topic     » topic index » view thread      » older message » newer message

About the auto-detection...                                             [Ralf
Nieuwenhuijsen]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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
--------------------------------------------------

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:

---------------------------------------------------------------------
        include sfx2.e
        if not SB_Detect("") then
                puts(1," Sound card not detected.. \n")

                -- ask for addres and stuff

                if not SB_Detect({given_addres, given_irq, given_dma}) then
                        puts(1,"Failed again\n")
puts(1,"Sorry no soundblaster support for your
                        card..\n")
                end if
        end if
---------------------------------------------------------------------
        See, the program can now detect the soundcard when it wants and your
routine first tries to find it itself, then it tries to start it at
the addres and irq/dma given at the SET BLASTER environment and then
if given, tries the values given to the function in a sequence.

        That would be nice.....

`````````````````````````````````````````````````````````````````````
Ralf Nieuwenhuijsen
nieuwen at xs4all.nl

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu