Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emu-script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Doudou
Apprentice
Apprentice


Joined: 10 Jan 2003
Posts: 286
Location: Paris, France

PostPosted: Tue Feb 11, 2003 2:04 pm    Post subject: emu-script Reply with quote

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
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Thu Feb 13, 2003 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Doudou
Apprentice
Apprentice


Joined: 10 Jan 2003
Posts: 286
Location: Paris, France

PostPosted: Thu Feb 20, 2003 6:20 pm    Post subject: Reply with quote

Thanks DuF :lol:

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

Pliiiiiiiiizzzzzzz, can you find a super bash programmer!!! :D
Back to top
View user's profile Send private message
burzmali
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 238
Location: ca

PostPosted: Thu Feb 20, 2003 7:13 pm    Post subject: Reply with quote

i believe the proper usage is:
Code:

emu-config -d

and not
Code:

emu-config -d yes

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
View user's profile Send private message
Doudou
Apprentice
Apprentice


Joined: 10 Jan 2003
Posts: 286
Location: Paris, France

PostPosted: Sun Feb 23, 2003 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
burzmali
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 238
Location: ca

PostPosted: Sun Feb 23, 2003 7:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Tue Feb 25, 2003 2:10 am    Post subject: Reply with quote

Doudou, Have you try emu-config instead of emu-script ?
I'm interesting to know if you get success with it ;)
Back to top
View user's profile Send private message
Doudou
Apprentice
Apprentice


Joined: 10 Jan 2003
Posts: 286
Location: Paris, France

PostPosted: Tue Feb 25, 2003 8:59 am    Post subject: Reply with quote

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 :D , 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum