VAR-SOM-AM43 Audio record play: Difference between revisions
From Variscite Wiki
(Created page with "= Audio record/play = For playing a sample .wav type: <pre> $ aplay /usr/share/sounds/alsa/Front_Center.wav </pre> <pre> For recording and playing a sample .wav type: amixe...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{PageHeader|VAR-SOM-AM43 - Audio record/play }} {{DocImage|category1=VAR-SOM-AM43|category2=Yocto}} __toc__ | |||
For playing a sample .wav type: | For playing a sample .wav type:</br> | ||
<pre> | <pre> | ||
Line 6: | Line 6: | ||
</pre> | </pre> | ||
For recording and then playing a sample .wav type:</br> | |||
<pre> | <pre> | ||
$ amixer sset 'Left Line1L Mux' differential | |||
amixer sset 'Left Line1L Mux' differential | $ amixer sset 'Right Line1R Mux' differential | ||
amixer sset 'Right Line1R Mux' differential | $ arecord -f dat -d 10 -D hw:0,0 -N test.wav | ||
arecord -f dat -d 10 -D hw:0,0 -N test.wav | $ aplay test.wav | ||
aplay test.wav | |||
</pre> | </pre> |
Latest revision as of 13:17, 24 December 2015
VAR-SOM-AM43 - Audio record/play
For playing a sample .wav type:
$ aplay /usr/share/sounds/alsa/Front_Center.wav
For recording and then playing a sample .wav type:
$ amixer sset 'Left Line1L Mux' differential $ amixer sset 'Right Line1R Mux' differential $ arecord -f dat -d 10 -D hw:0,0 -N test.wav $ aplay test.wav