View previous topic :: View next topic |
Author |
Message |
Doudou Apprentice
Joined: 10 Jan 2003 Posts: 286 Location: Paris, France
|
Posted: Tue Feb 11, 2003 2:04 pm Post subject: emu-script |
|
|
Hi,
I've got a sound blaster live 5.1 and I use emu10k1. The driver work perfectly in Analog and Digital output.
The problem is : When I to switch from Digital to Analog or Analog to Digital, I use emu-script with the -d yes option but it doesn't work. After some debug (I'm not good in bash script) I found a problem (in fact two but the second one has nothing to do with me).
Code: |
# Pick up any command line overrides
while getopts d:t:i:r:m:s:b: OPT $SAVEARGS; do
case "$OPT" in
d)
USE_DIGITAL_OUTPUT=$OPTARG
;;
t)
ENABLE_TONE_CONTROL=$OPTARG
;;
3)
AC3PASSTHROUGH=$OPTARG
;;
i)
ENABLE_LIVEDRIVE_IR=$OPTARG
;;
r)
INVERT_REAR=$OPTARG
;;
m)
MULTICHANNEL=$OPTARG
;;
s)
ROUTE_ALL_TO_SUB=$OPTARG
;;
b)
ANALOG_FRONT_BOOST=$OPTARG
;;
*)
exit 1
;;
esac
shift 2
done
|
The first problem is that you can't choose AC3PASSTHROUGH : 3 is missing in getopts d:t:i:r:m:s:b:
The second one (more important for me) is that the while stop after shift 2 so options can not be use...
Is somebody can solve the problem? Cheers, Doudou. |
|
Back to top |
|
|
DuF Advocate
Joined: 09 Dec 2002 Posts: 2687 Location: Paris
|
Posted: Thu Feb 13, 2003 1:47 pm Post subject: |
|
|
Maybe you can modify Code: | while getopts d:t:i:r:m:s:b: |
by
Code: | while getopts d:t:3:i:r:m:s:b: |
For the second problem, I don't have any ideas ! |
|
Back to top |
|
|
Doudou Apprentice
Joined: 10 Jan 2003 Posts: 286 Location: Paris, France
|
Posted: Thu Feb 20, 2003 6:20 pm Post subject: |
|
|
Thanks DuF
Do you think I posted my question in the bad category? 10 days after, I still have no answer in this formum and in sourceforge's forum.
Pliiiiiiiiizzzzzzz, can you find a super bash programmer!!! |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Thu Feb 20, 2003 7:13 pm Post subject: |
|
|
i believe the proper usage is:
and not
so for acpassthrough and digital, try
Code: |
emu-config -d -3
-or-
emu-config -d3
|
try that and see if it works
[edit] i just read through the script again and it appears that i am full of it. except that everytime i have wanted to enable digital out by hand i have just used emu-config -d abd it worked. maybe try it anyway [/edit] _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
Doudou Apprentice
Joined: 10 Jan 2003 Posts: 286 Location: Paris, France
|
Posted: Sun Feb 23, 2003 4:44 pm Post subject: |
|
|
Thanks fot your answer burzmali, I tryed your solution but it's not working... Have a look of my output :
Code: |
doudou@doudou doudou $ emu-script -d
/usr/bin/emu-script: option requires an argument -- d
|
and
Code: |
doudou@doudou doudou $ emu-script d
doudou@doudou doudou $ emu-script d yes
doudou@doudou doudou $ emu-script -d yes
|
don't do anything...snif... |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Sun Feb 23, 2003 7:17 pm Post subject: |
|
|
maybe try emu-config instead of emu-script? or else try one of the audigy verions (audigy-script, audigy-config)? _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
DuF Advocate
Joined: 09 Dec 2002 Posts: 2687 Location: Paris
|
Posted: Tue Feb 25, 2003 2:10 am Post subject: |
|
|
Doudou, Have you try emu-config instead of emu-script ?
I'm interesting to know if you get success with it |
|
Back to top |
|
|
Doudou Apprentice
Joined: 10 Jan 2003 Posts: 286 Location: Paris, France
|
Posted: Tue Feb 25, 2003 8:59 am Post subject: |
|
|
I had a look of the audigy but it's realy similare
If I want to use emu-config, I have to use emu-dspmgr (to add corect route) so it means I will do a new script... I could re-write the script in perl , but, for the moment, I removed shift 2 . Without this line, it' works perfectly when you pass only 1 argument.
Thanks for you help, Doudou. |
|
Back to top |
|
|
|