Difference between revisions of "OE Audio Progs"
Kyoungmeyer (talk | contribs) (Replaced content with "{{ subst:Pgtempl | initials={{subst::Templateimpl:getinitials}} | project=OE 5.0 | title=Audio Programs | desc=Audio programs included with EMAC OE5.X }}") |
Kyoungmeyer (talk | contribs) |
||
Line 1: | Line 1: | ||
− | {{todo| | + | {{todo| InProgress (11.12.2015-11:13->KY+)|Klint Youngmeyer| project=OE 5.0,KY,NotStarted }} |
{{#seo: | {{#seo: | ||
|title=Audio Programs | |title=Audio Programs | ||
Line 10: | Line 10: | ||
<!-- /**************************************** Page Description Text ****************************************/ --> | <!-- /**************************************** Page Description Text ****************************************/ --> | ||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
− | + | By default, EMAC OE 5.X comes with two audio packages: ALSA and mpg123. More packages and applications are available from EMAC at a customer's request. | |
__TOC__ | __TOC__ | ||
+ | |||
+ | ==ALSA== | ||
+ | ALSA, or the Advanced Linux Sound Architecture, is a part of the Linux Kernel and is a software framework that provides an API for sound devices. The ALSA framework includes several applications for working with sound. | ||
+ | <cl> | ||
+ | * <code>alsamixer</code> is an ncurses mixer program for use with the ALSA soundcard drivers. It supports multiple soundcards with multiple devices. The <code>alsamixer</code> menu displays a volume bar for each audio device present on the system. Adjusting these volume bars (with the arrow keys and 'm' for mute) allows changing of the output or input device volume corresponding to the given bar. An example of the <code>alsamixer</code> interface is shown in Figure 1. | ||
+ | <br/> | ||
+ | ::[[File:Alsamixer_screen.jpg|600px|thumb|left|Figure 1: Example of <code>alsamixer</code>]] | ||
+ | <br clear=all> | ||
+ | * <code>alsactl</code> is used to control advanced settings for the ALSA soundcard drivers. It supports multiple soundcards. Also, the <code>alsactl store</code> command is used to store driver setup and changes made in <code>alsamixer</code> to the static configuration file. The following example demonstrates changing the settings for the default sound card by remounting the filesystem read-write, changing the settings, storing them, then remounting the filesystem read-only. | ||
+ | {{clo}} | ||
+ | {{clio | hostname=emac-oe | oemntrw }} | ||
+ | {{clio | hostname=emac-oe | alsamixer }} | ||
+ | #make necessary changes... | ||
+ | |||
+ | {{clio | hostname=emac-oe | alsactl store }} | ||
+ | {{clio | hostname=emac-oe | oemntrw -r}} | ||
+ | {{clos}} | ||
+ | |||
+ | :Aside from the store function, <code>alsactl</code> has a few other commands available. The <code>restore</code> command is used to load current driver setup for one or each soundcards from configuration file, the <code>init</code> command initialize driver and settings to a default state, and the <code>names</code> command dumps information about all the known present (sub-)devices into configuration file (<code>names</code> command is deprecated) | ||
+ | * <code>aplay</code> is a command-line soundfile player for the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices. For supported soundfile formats, the sampling rate, bit depth, and so forth can be automatically determined from the soundfile header. | ||
+ | * <code>arecord</code> is a command-line soundfile recorder for the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices. If recording with interleaved mode samples the file is automatically split before the 2GB filesize. | ||
+ | * <code>speaker-test</code> generates a series of sounds from the different channels of the default (or user specified) audio device. Some example tests are as follows: | ||
+ | </cl> | ||
+ | :Outputting a voice identifying each channel | ||
+ | {{cli | hostname=emac-oe | speaker-test -t wav -l 1 -c 2}} | ||
+ | :Outputting a sine wave tone to each channel | ||
+ | {{cli | hostname=emac-oe | speaker-test -t sine -l 1 -c 2 -f 550}} | ||
+ | |||
+ | ==mpg123== | ||
+ | mpg321 is a simple and lightweight command line mp3 player. It is designed for use on front ends, shell scripts, as an mp3 player and as an mp3 to wave file decoder (primarily for use with CD-recording software). | ||
+ | |||
+ | <!-- /*********************************************************************************************************/ --> | ||
+ | <!-- /****************************************** More Information *****************************************/ --> | ||
+ | <!-- /*********************************************************************************************************/ --> | ||
+ | {{:Templateimpl:moreinfo | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }} | ||
+ | * | ||
+ | |||
+ | {{:Templateimpl:whatnext | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }} | ||
+ | * [http://www.alsa-project.org/main/index.php/Documentation ALSA Official Documentation] | ||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
<!-- /***************************************** Background Information ****************************************/ --> | <!-- /***************************************** Background Information ****************************************/ --> | ||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
− | {{:Templateimpl:bg | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }} | + | <!--{{:Templateimpl:bg | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }}--> |
− | |||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
<!-- /***************************************** General Information *****************************************/ --> | <!-- /***************************************** General Information *****************************************/ --> | ||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
− | {{:Templateimpl:geninfo | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }} | + | <!--{{:Templateimpl:geninfo | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }}--> |
− | |||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
<!-- /***************************************** Using/Working With ******************************************/ --> | <!-- /***************************************** Using/Working With ******************************************/ --> | ||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
− | {{:Templateimpl:using | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }} | + | <!--{{:Templateimpl:using | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }}--> |
− | |||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
<!-- /***************************************** Examples *****************************************/ --> | <!-- /***************************************** Examples *****************************************/ --> | ||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
− | {{:Templateimpl:examples | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }} | + | <!--{{:Templateimpl:examples | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }}--> |
− | |||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
<!-- /****************************************** Conclusion ******************************************/ --> | <!-- /****************************************** Conclusion ******************************************/ --> | ||
<!-- /*********************************************************************************************************/ --> | <!-- /*********************************************************************************************************/ --> | ||
− | {{:Templateimpl:conclusion | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }} | + | <!--{{:Templateimpl:conclusion | initials=KY | title=Audio Programs | desc=Audio programs included with EMAC OE5.X | project=OE 5.0 }}--> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 13:29, 12 November 2015
By default, EMAC OE 5.X comes with two audio packages: ALSA and mpg123. More packages and applications are available from EMAC at a customer's request.
ALSA
ALSA, or the Advanced Linux Sound Architecture, is a part of the Linux Kernel and is a software framework that provides an API for sound devices. The ALSA framework includes several applications for working with sound.
-
alsamixer
is an ncurses mixer program for use with the ALSA soundcard drivers. It supports multiple soundcards with multiple devices. Thealsamixer
menu displays a volume bar for each audio device present on the system. Adjusting these volume bars (with the arrow keys and 'm' for mute) allows changing of the output or input device volume corresponding to the given bar. An example of thealsamixer
interface is shown in Figure 1.
-
alsactl
is used to control advanced settings for the ALSA soundcard drivers. It supports multiple soundcards. Also, thealsactl store
command is used to store driver setup and changes made inalsamixer
to the static configuration file. The following example demonstrates changing the settings for the default sound card by remounting the filesystem read-write, changing the settings, storing them, then remounting the filesystem read-only.
root
@
emac-oe
:
~
#
oemntrw
root
@
emac-oe
:
~
#
alsamixer
#make necessary changes...
root
@
emac-oe
:
~
#
alsactl store
root
@
emac-oe
:
~
#
oemntrw -r
- Aside from the store function,
alsactl
has a few other commands available. Therestore
command is used to load current driver setup for one or each soundcards from configuration file, theinit
command initialize driver and settings to a default state, and thenames
command dumps information about all the known present (sub-)devices into configuration file (names
command is deprecated)
-
aplay
is a command-line soundfile player for the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices. For supported soundfile formats, the sampling rate, bit depth, and so forth can be automatically determined from the soundfile header. -
arecord
is a command-line soundfile recorder for the ALSA soundcard driver. It supports several file formats and multiple soundcards with multiple devices. If recording with interleaved mode samples the file is automatically split before the 2GB filesize. -
speaker-test
generates a series of sounds from the different channels of the default (or user specified) audio device. Some example tests are as follows:
- Outputting a voice identifying each channel
root
@
emac-oe
:
~
#
speaker-test -t wav -l 1 -c 2
- Outputting a sine wave tone to each channel
root
@
emac-oe
:
~
#
speaker-test -t sine -l 1 -c 2 -f 550
mpg123
mpg321 is a simple and lightweight command line mp3 player. It is designed for use on front ends, shell scripts, as an mp3 player and as an mp3 to wave file decoder (primarily for use with CD-recording software).
Further Information
Where to Go Next
Pages with Related Content