ALSA Basics: Difference between revisions

mNo edit summary
mNo edit summary
Line 27: Line 27:


====Two Cool Commands to Try====
====Two Cool Commands to Try====
Here's something fun to try.  Two command prompts / SSH sessions are necessary because both commands need to be running at the same time.
Here's something fun to try.  Two command prompts / SSH sessions are necessary because both commands need to be running at the same time.


Run this command in two 'sessions' (you don't have to press Enter simultaneously): aplay -D hw:0,0 BeeGees.wav -vv<syntaxhighlight lang="text">
Run this command in two 'sessions' (you don't have to press Enter simultaneously): aplay -D hw:0,0 BeeGees.wav -vv<syntaxhighlight lang="text">
aplay: main:834: audio open error: Resource busy
aplay: main:834: audio open error: Resource busy
</syntaxhighlight>How'd that go?  Not good, huh?  Well, it wasn't supposed too (sorry, but it's a nice error message you'll be getting in the future for other stuff, so it's here to get you used to frustration<span> </span>: ) ).
</syntaxhighlight>How'd that go?  Not good, huh?  Well, it wasn't supposed too (sorry, but it's a nice error message you'll be getting in the future for other stuff, so it's here to get you used to frustration<span> </span>: ) ).
<code>Test Line</code>
<code>Test Line</code>