最終更新: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));
- 処理
printf( _(" Subdevices: %i/%i\n"), snd_pcm_info_get_subdevices_avail(pcminfo), count);
- 処理
printf(_(" Subdevice #%i: %s\n"), idx, snd_pcm_info_get_subdevice_name(pcminfo));
idx 0 サブデバイスID (forのカウンタ) snd_pcm_info_get_subdevice_name?(pcminfo) subdevice #0