最終更新:2024-10-31 (木) 02:45:51 (178d)  

aplay -l
Top / aplay -l

list all soundcards and digital audio devices

-l, --list-devices      list all soundcards and digital audio devices

表示

  • aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: I82801AAICH [Intel 82801AA-ICH], device 0: Intel ICH [Intel 82801AA-ICH]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
  • 処理
    printf(_("card %i: %s [%s], device %i: %s [%s]\n"),
    	card, snd_ctl_card_info_get_id(info), snd_ctl_card_info_get_name(info),
    	dev,
    	snd_pcm_info_get_id(pcminfo),
    	snd_pcm_info_get_name(pcminfo));
    card0snd_card_next
    snd_ctl_card_info_get_id?(info)I82801AAICH
    snd_ctl_card_info_get_name?(info)Intel 82801AA-ICH
    dev0ALSA/デバイス番号? (snd_ctl_pcm_next_device?)
    snd_pcm_info_get_id?Intel ICH
    snd_pcm_info_get_name?(pcminfo)Intel 82801AA-ICH
  • 処理
    printf( _("  Subdevices: %i/%i\n"),
    	snd_pcm_info_get_subdevices_avail(pcminfo), count);
    snd_pcm_info_get_subdevices_avail?(pcminfo)0
    count1snd_pcm_info_get_subdevices_count?
  • 処理
    printf(_("  Subdevice #%i: %s\n"),
    	idx, snd_pcm_info_get_subdevice_name(pcminfo));
    
    idx0サブデバイスID (forのカウンタ)
    snd_pcm_info_get_subdevice_name?(pcminfo)subdevice #0

処理

関連