I don't know, but possibly with the asound.rc file like in this link
http://www.mail-archive.com/fsck@mtcs.t ... 00882.html
Firefox - How to make sound output to /dev/dsp1?
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Re: Firefox - How to make sound output to /dev/dsp1?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Firefox - How to make sound output to /dev/dsp1?
I have to guess how much you all know and as you talked about sound to /dev/dsp1 I thought you knew a lot
That link is a bit difficult for the non geek
Start by creating a file in home called .asoundrc
The dot in the beginning means it's "hidden"
Add this to it
Create another file in home called setaudio or whatever you like
Add this to it
Make the file executable (right click)
According to the link:
Then I can just do:
$ setaudio firefox
or
$ setaudio totem movie.avi
(In the terminal - I think you can make a launcher if you like)
No sudo anywhere in this!
Hope this clears things up
I hope
That link is a bit difficult for the non geek
Start by creating a file in home called .asoundrc
The dot in the beginning means it's "hidden"
Add this to it
Code: Select all
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Add this to it
Code: Select all
#!/bin/bash
if [ -e /dev/dsp1 -a ! -e ~/.asoundrc ]; then
cat > ~/.asoundrc << ASOUNDRC
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
ASOUNDRC
fi
if [ -e ~/.asoundrc -a ! -e /dev/dsp1 ]; then
rm ~/.asoundrc
fi
exec "$@"
#----- end setaudio -----
According to the link:
Then I can just do:
$ setaudio firefox
or
$ setaudio totem movie.avi
(In the terminal - I think you can make a launcher if you like)
No sudo anywhere in this!
Hope this clears things up
I hope
Re: Firefox - How to make sound output to /dev/dsp1?
Yes the double click did it
When I read this little script it's as something is missing - and that's how it's directed to FF and Totem
If it works ok then there's nothing more to it
If you want this to autostart at boot time you could just add the script without the
#!/bin/bash
between the comments and exit 0 in /etc/rc.local
I think it runs fine in terminal just as setaudio - nothing more
When I read this little script it's as something is missing - and that's how it's directed to FF and Totem
If it works ok then there's nothing more to it
If you want this to autostart at boot time you could just add the script without the
#!/bin/bash
between the comments and exit 0 in /etc/rc.local
I think it runs fine in terminal just as setaudio - nothing more
Re: Firefox - How to make sound output to /dev/dsp1?
It works from terminal (I hope )
However home is not in your path so you would have to do /home/your_name/Desktop/setaudio if you have setaudio on the Desktop
I should have pointed that out straight ahead - sorry
However home is not in your path so you would have to do /home/your_name/Desktop/setaudio if you have setaudio on the Desktop
I should have pointed that out straight ahead - sorry