QUERYCARDS ; Check how many cards are "installed"
IF RC > 0 THEN ; If theres more than one we want the second
setcard 1 ; 0= first card, 1= second card 2= third...
ENDIF
EXIT 0
You need to put it in WBStartup, make a script out of it and executeable
The IF loop is not needed as you know that you want the second card installed, still, kind of an insurance
To test if it will work, first open up Mixer GUI and run the script...if your card (at the right side - beside the cycle gadget) is changed it should work from boot time aswell
of course, some may run away screaming due to the mistakes i made (even in such a short script)
Doing this from memory, I'm currently not near my A1.
- First make sure the script has an icon; - open its information (RA+I on the WB); - make it a script by checking the corresponding box; - go to the other tab; - choose "ARexx" from the droplist; - click save
Now having Mixer open, double click the script you must see your card changing to the one you put in the script.
7 *-* Check how many cards are "installed"; +++ Command returned 20 +++ Error 46 in line 8: Boolean value not 0 or 1 Command returned 10/46: Boolean value not 0 or 1
Very cool! I think the most important thing is a very cool interface.. with nice rendered controls and buttons to look like a pro dj mixer or so... ???????????
Mixing DOS and AREXX scripts myself again :-/ Comments are sandwiched between /* */ pairs
/* Skip the CS4281 */
FAILAT 21
ADDRESS COMMAND 'waitforport 'MIXER
ADDRESS MIXER
QUERYCARDS /* Check how many cards are "installed" */
IF RC > 0 THEN DO /* If theres more than one we want the second */
ADDRESS COMMAND "Wait 1"
setcard 1 /* 0= first card, 1= second card 2= third... */
ADDRESS COMMAND "Wait 1"
PCMDOWN /* PCM Volume down one step */
ADDRESS COMMAND "Wait 1"
PCMUP /* ...and up again */
END
EXIT 0
Open up Mixer before you start the script, you can watch your card being set to the second available, then the PCM volume going down one step and up again, if that works you can delete line 11 and lines 13 to 16 again and set the script up in WBStartup.
Of course this is and will stay only a workaround, it would be by far better if someone can introduce a tooltype for skipping your inbuilt sound chip. There is one already, stating from the docs Quote:
- You can use the CLI argument or tooltype 'NO_VIA' to suppress detection of the VIA686B onboard sound in case you don't have the onboard sound chip on your AmigaOne.
So...this ones for AlexC or Daniel or whoever wants to take a shot on it It *should* be fairly easy as there is a similar tooltype already skipping VIA How about one "NO_CS4" for all the Sam users?
Open up Mixer GUI and click once on the cycle gadget (right side above SAVE). If that doesn't change anything than the only card installed is the card displayed on the right side
the cs4281 is the bult in sound on my Samflex...I only have one pci sound card in my Sam and one Catweasel card...my problem is mixer defaults to cs4281 at start up each time & i want my Revo5.1 to be the default instead of me always having to change it
if mixer defaults to the cs, then you ought to have TWO cards installed. Mixers AREXX command QUERYCARDS does but only find ONE, so where is the second card?
Please do as i suggested above and tell me if the cycle gadget in Mixer works and actually cycles to your Revo on a single click.
If not your Revo might not be properly installed and we must go from there
It's hard to track down something i'm not able to test :-/
/* Skip the CS4281 */
OPTIONS FAILAT 21
ADDRESS COMMAND 'waitforport 'MIXER
ADDRESS MIXER
ADDRESS COMMAND "Wait 1"
setcard 1 /* 0= first card, 1= second card 2= third... */
ADDRESS COMMAND "Wait 1"
PCMDOWN /* PCM Volume down one step */
ADDRESS COMMAND "Wait 1"
PCMUP /* ...and up again */
EXIT 0
Try this on Workbench with open Mixer GUI (all the checks taken out)
If QUERYCARDS is right you should get a console window telling you Quote:
setcard 1 is out of range
but it should still change PCM Volume on the active card (CS probably) then. If not than something in your driver installation of the Revo is wrong, because the script output clearly states there is NO second card installed. At least it can't find one, but if you can cycle through them, then the above should work aswell.
ok Hubert we got something with the last revision my friend
when script executed off WB it switches the card to my Revo5.1 !..but I tried putting the script into my WB startup folder after loading the mixer up and it won't work ???