Dsp

From Hackepedia
Revision as of 13:46, 14 July 2007 by SycZek (talk | contribs)
Jump to navigationJump to search

[music ringtones] [cool ringtones] [fioricet online] [real ringtones] [online lorazepam] [soma online] [clomid online] [clonazepam] [paxil online] [lisinopril online] [free samsung ringtones] [sonyericsson ringtones] [phentermine online] [alltel ringtones] [sprint ringtones] [clonazepam online] [didrex online] [ultram online] [verizon ringtones] [celexa online] [cheap norco] [buy diethylpropion] [cheap tenuate] [free verizon ringtones] [lipitor online] [buy diazepam] [verizon ringtones] [cheap adipex] [meridia online] [free samsung ringtones] [cingular ringtones] [clomid online] [lisinopril online] [cheap carisoprodol] [cheap paxil] [free ericsson ringtones] [free mono ringtones] [cheap albuterol] [free ericsson ringtones] [cheap ambien] [levitra online] [didrex online] [midi ringtones] [cheap clomid] [cheap lipitor] [sagem ringtones] [meridia online] [free sony ringtones] [valium online] [clomid online] [hoodia online] [music ringtones] [cheap hydrocodone] [but adipex] [hgh online] [cheap hgh] [order levitra] [tracfone ringtones] [free sony ringtones] [order propecia] [cheap vicodin] [soma online] [free verizon ringtones] [buy meridia] [vicodin online] [free verizon ringtones] [cheap alprazolam] [nokia ringtones] [qwest ringtones] [free sharp ringtones] [polyphonic ringtones] [cheap viagra] [cheap sildenafil] [didrex online] [wellbutrin] [cyclobenzaprine online] [free funny ringtones] [cheap rivotril] [paxil online] [sharp ringtones] [sagem ringtones] [order xenical] [cheap hydrocodone] [lortab online] [phentermine online] [cheap lorazepam] [free polyphonic ringtones] [xenical online] [buy wellbutrin] [ultracet] [paxil online] [cheap ultracet] [jazz ringtones] [alprazolam online] [mono ringtones] [vicodin] [cheap albuterol] [funny ringtones] [free ringtones] [cheap pharmacy online] [cheap nexium] [vigrx online] [ativan online] [free polyphonic ringtones] [online flexeril] [free punk ringtones] [midi ringtones] [ultram] [cheap fioricet] [tracfone ringtones] [hydrocodone online] [sprint ringtones] [meridia online] [cheap valium] [phentermine online] [cheap vicodin] [free cingular ringtones] [wellbutrin online] [cheap adipex] [free midi ringtones] [cheap sildenafil] [sagem ringtones] [cheap flexeril] [free free ringtones] [free real ringtones] [qwest ringtones] [cialis online] [free ericsson ringtones] [albuterol] [phentermine online] [real ringtones] [cheap lipitor] [free funny ringtones] [cheap ativan] [free qwest ringtones] [free tracfone ringtones] [cheap levitra] [free mp3 ringtones] [free real ringtones] [cheap phentermine] [free punk ringtones] [free cingular ringtones] [free music ringtones] [sony ericsson ringtones] [cheap diazepam] [lortab online] [wwe ringtones] [samsung ringtones] [cyclobenzaprine online] [sony ringtones] [cheap ativan] [cheap valium] [cialis online] [cheap fioricet] [cheap adipex] [free sony ringtones] [free funny ringtones] [xenical online] [order tramadol] [free tracfone ringtones] [free alltel ringtones] [free nokia ringtones] [tramadol online] [cheap carisoprodol] [cheap wellbutrin] [cheap hgh] [viagra online] [carisoprodol online] [vigrx online] [sonyericsson ringtones] [sagem ringtones] [cheap tramadol] [free mtv ringtones] [mono ringtones] [free wwe ringtones] [cheap valium] [hydrocodone online] [levitra] [music ringtones] [sharp ringtones] [free motorola ringtones] [cheap wellbutrin] [diethylpropion online] [zoloft online] [punk ringtones] [punk ringtones] [fioricet online] [jazz ringtones] [cheap norco] [free midi ringtones] [alprazolam online] [celexa online] [soma online] [adipex] [prozac online] [levitra] [prozac online] [fioricet online] [free jazz ringtones] [sonyericsson ringtones] == device creation ==

To create your /dev/dsp in linux if it doesn't exist:

$ grep snd_pcm_oss /proc/modules
$

not found.. so we'll add it:

# modprobe snd_pcm_oss 
# grep snd_pcm_oss /proc/modules
snd_pcm_oss 54528 0 - Live 0xf04a2000 
snd_mixer_oss 20032 1 snd_pcm_oss, Live 0xf048b000
snd_pcm 95016 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec, Live 0xf01dd000
snd 58980 8    
snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer, Live 0xf01b1000

okay it's there now. The drivers will be different based on your soundcard. Now to make it take affect next reboot, we will add it to /etc/modules

# echo snd_pcm_oss >> /etc/modules
$ id
uid=1000(franks) gid=1000(franks) groups=20(dialout),24(cdrom),25(floppy),29(audio),1000(franks)

As you can see, I am in the group "audio". If you don't see yourself in that group, ask your sysadmin to add you to the audio group in /etc/group:

$ grep audio /etc/group
audio:x:29:franks,asterisk

shows that franks and asterisk are the two users in the audio group on this system. The users are comma delimited.

Finally, make sure that your volume and pcm are turned up in your mixer software, such as aumix.

Now give it a try!

mpg123 is a CLI audio client. rhythmbox is a GUI audio client.

dsp already in use

Sometimes you will have two applications trying to access your audio device. The culprit can be discovered with lsof assuming your audio device is /dev/dsp like it is on BSD:

$ lsof | grep dsp
firefox-b 14905 frank    1w  VCHR       30,3        0t0     38 /dev/dsp0.0
firefox-b 14905 frank    1w  VCHR       30,3        0t0     38 /dev/dsp0.0
firefox-b 14905 frank    1w  VCHR       30,3        0t0     38 /dev/dsp0.0
firefox-b 14905 frank    1w  VCHR       30,3        0t0     38 /dev/dsp0.0

as you can see, one of the websites I am viewing with firefox has claimed access to my dsp first. I must now close that tab in firefox, and restart xmms, and all is well.


Stop embedded audio in Firefox

vi ~/.mozilla/firefox/0wt4rci4.default/chrome/userContent.css

and add these lines (creating the file if it doesn't already exist)

/* block embedded sounds */
embed[src*=.mid] { display: none !important }
embed[src*=.mp2] { display: none !important }
embed[src*=.mp3] { display: none !important }
embed[src*=.mp4] { display: none !important }
embed[src*=.wav] { display: none !important }
embed[src*=.wma] { display: none !important }

Stop embedded audio in flash

Not a highly recommended hack, but I opened

vi ~/.mozilla/plugins/libflashplayer.so

and did a

/dsp

which found /dev/dsp which I replaced with /dev/xxx in order to stop flash from accessing my /dev/dsp, as it never released it properly.


Once you have audio working, you may want to try listening to an online streaming radio station such as our recommend streaming stations.