Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2013-07-24 05:26:28
Size: 303
Editor: frank
Comment:
Revision 3 as of 2013-07-24 05:42:41
Size: 910
Editor: frank
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
* Only root can read the audio device - Add regular user to "audio" group

* Volume control - "alsamixer", left/right, up/down to adjust the volume

* Play mp3 in command line - ffplay from ffmpeg, play from sox with libsox-fmt-mp3
 * Play mp3 in command line
  * Packages - alsa alsa-lib
  * List playback devices
  {{{
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
}}}
  * Only root can read the audio device - Add regular user to "audio" group
  * Volume control - "alsamixer", left/right, up/down to adjust the volume
  * Play mp3 in command line - ffplay from ffmpeg, play from sox with libsox-fmt-mp3

Issues

  • Play mp3 in command line
    • Packages - alsa alsa-lib
    • List playback devices
      $ aplay -l
      **** List of PLAYBACK Hardware Devices ****
      card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
        Subdevices: 1/1
        Subdevice #0: subdevice #0
    • Only root can read the audio device - Add regular user to "audio" group
    • Volume control - "alsamixer", left/right, up/down to adjust the volume
    • Play mp3 in command line - ffplay from ffmpeg, play from sox with libsox-fmt-mp3
      $ ffplay file.mp3
      $ play file.mp3

Tech/LinuxAudio (last edited 2013-07-26 18:49:50 by frank)