Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
125 user(s) are online (122 user(s) are browsing Forums)

Members: 1
Guests: 124

ktadd, more...

Support us!

Headlines

 
  Register To Post  

« 1 (2) 3 4 5 6 »
Re: New project - Mixer
Home away from home
Home away from home


See User information
@328gts

You *can* workaround it, though

/* Skip the CS4281 */

ADDRESS COMMAND 'waitforport 'MIXER

ADDRESS MIXER

QUERYCARDS        
Check how many cards are "installed"
IF RC 0 THEN        ; If theres more than one we want the second
    setcard 1    
0first card1second card 2third...
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)

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@Raziel

sounds good to me but tried to execute script & I get 'command not recognized error' ?

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Quite a regular
Quite a regular


See User information
@328gts

you realized this is an ARexx script and not a DOS script, didn't you ?

Back to a quiet home... At last
Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@abalaban

ahh cool now I can try to make my first Arexx script ..so can you please point me in the right direction to get started

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Quite a regular
Quite a regular


See User information
@328gts

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.

Back to a quiet home... At last
Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@ Raziel & abalaban

thanks for the info

Arexx scripot gives the followjng when executed:

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

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Just popping in
Just popping in


See User information
@orgin

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

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@328gts

OUCH!!!

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?

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@Raziel

thanks again for the input!..new script gives the following:

3 *-* FAILAT 21;
+++ Command returned 10

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@328gts

lol

delete it and try again

nah, better yet use

OPTIONS FAILAT 21


note to self: stop thinking in DOS scripts

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@Raziel

ok changed but well no error messages but now nothing happens at all while the mixer GUI is open

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@328gts

Hmm

Try the following:

Open Mixer GUI
Open shell
type in the following:

TS
then
rx path to script/script

now every command of the script will be echoed, proceed with pressing RETURN upto where it sends you back to the shell prompt

now type

TE

and post the result from TS to TE

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@Raziel

here's what i get:

New Shell process 5
5.AmigaOS:> TS
5.AmigaOS:> rx mixer-nocs4281.rexx
1 *-* ;
3 *-* OPTIONS FAILAT 21;
>>> "21"
>+> TE
+++ Command returned 5
>+>
5 *-* ADDRESS COMMAND 'waitforport 'MIXER;
>>> "waitforport MIXER"
>+>
7 *-* ADDRESS MIXER;
>+>
9 *-* QUERYCARDS;
>>> "QUERYCARDS"
>+>
10 *-* IF RC > 0 THEN
>>> "0"
19 *-* EXIT 0;
>>> "0"
5.AmigaOS:>
5.AmigaOS:>

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@328gts

QUERYCARDS does not find a second card installed

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

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@Raziel

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

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@328gts

you didn't understand me

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

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@Raziel

yes the Revo5.1 card has always shown up in Mixer along with cs4281. My Revo5.1 sound card works great in every single application.

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@328gts

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.

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@Raziel

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

thanks for all the help mate

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: New project - Mixer
Home away from home
Home away from home


See User information
@328gts

Quote:

328gts wrote:
@Raziel

ok Hubert we got something with the last revision my friend

when script executed off WB it switches the card to my Revo5.1 !..



Utterly strange
While Querycards doesn't seem to find one you obviously have a second one installed...hrmm

That would be something for the devs to look at aswell

Quote:

but I tried putting the script into my WB startup folder after loading the mixer up and it won't work ???

thanks for all the help mate


Hmm, maybe the waitforport line doesn't catch...
Make sure you have waitforport in C: somewhere

ok, lets tidy the script up
/* Set Mixer to use Revo5 (CS4281 being the first card) */

OPTIONS FAILAT 21

ADDRESS COMMAND WAITFORPORT Mixer 
/* Wait for Mixer to be up and running */
ADDRESS MIXER

setcard 1            
/* Set Revo5 to the default */

EXIT 0


Also make sure that your script has an icon and is set to EXECUTEABLE and SCRIPT.
The default tool must be C:RX and "Start from" must be AREXX.

Finally add these tooltypes:
STARTPRI=126
DONOTWAIT

Go to top

  Register To Post
« 1 (2) 3 4 5 6 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project