Skip to content

Arch Linux Sound Device

I've seen commands and such like:

cat /dev/null > /dev/dsp

But I don't have a /dev/dsp or a /dev/audio.

I use alsa and my audio works, but I can't find where I would inject audio using cat and the command line.

Thanks in advance.

10 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
10 · 100% up
Kind
Text
ID
miczy

9 comments

use aplay if you want to know what your files sound like.

aplay /dev/urandom
8 points
unknown author3 hidden

Cool, but isn't there a way to do this by routing it to a file that represents my sound device?

2 points

try this:

modprobe snd-pcm-oss

some info here

also, becareful when you use it because i think whatever program that uses /dev/dsp is going to hijack all your audio so you can't use other things that use alsa normally. i only have anecdotal evidence of this since there is one game that i play but when i play it, i have to make sure alsa is free so i get audio.

3 points
unknown author1 hidden

I did the modprobe and /dev/dsp and /dev/audio showed up, but I get:

$ cat /dev/null > /dev/dsp
bash: /dev/dsp: Device or resource busy
2 points

You can only use the OSS-emulation device when your alsa device is free. If you want to use the dsp device at the same time as ALSA applications, you need to emulate it using osspd.

3 points

You can use OSS instead of ALSA (it’s OSS that uses /dev/dsp).

The wiki has a page about it.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.