1. SFX2 - Detection

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 message » categorize

2. Re: SFX2 - Detection

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: SFX2 - Detection

>  is this possible that your sound card IRQ be different from one of these
> 1,3,7,10
>  detect only test those one.
        Why? Mine is 5, i'll try it at 7... and tell you what happens..
        (I can change the setting, but my card's default is 5)

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

        OK, but what if someone has more then one card.....
        That's why the drivers shouldn't be loaded when the sfx2.e is
included, but when a routine is called, also people might not always
want you to load the sound-driver, on multi-tasking environments they
might want to hear their win95 mod-player too, but only when program
can have control of the soundcard it seems....

        Thanks anyway....  (I think it will work when i change my irq
setting)
        Maybe you should include this information with your new version, it
can save a lot of trouble....

-------------------------------
Ralf Nieuwenhuijsen
nieuwen at xs4all.nl

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu