MrCBofBCinTX
Technical User
I tried to figure out how to solve this problem with a shell script, but I finally gave up and figured out how to do it with perl.
I would still like to know how to do it without perl, though.
I have a crappy sound card that has poor support(no volume control) under OpenBSD.
In OpenBSD, mplayer uses software mixer only, but it defaults to a very high volume.
I also have a script that lowers volume through aucat.
The problem is that mplayer ignores that when it starts playing. After starting, it does work for adjusting volume.
So I have previously opened two xterms, one for mplayer, one for volume adjustment. Ugh.
The problem could only be solved by a script to start mplayer and then fork and lower volume to my preferred default.
I did this with perl.
How can I also accomplish this with a shell script?
Thanks
I would still like to know how to do it without perl, though.
I have a crappy sound card that has poor support(no volume control) under OpenBSD.
In OpenBSD, mplayer uses software mixer only, but it defaults to a very high volume.
I also have a script that lowers volume through aucat.
The problem is that mplayer ignores that when it starts playing. After starting, it does work for adjusting volume.
So I have previously opened two xterms, one for mplayer, one for volume adjustment. Ugh.
The problem could only be solved by a script to start mplayer and then fork and lower volume to my preferred default.
I did this with perl.
How can I also accomplish this with a shell script?
Thanks