2019-06-13 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdalsaconfig(8) that caused the device list
	to be incorrectly sorted.
This commit is contained in:
Fred Gleason
2019-06-13 17:09:19 -04:00
parent 7e915ffe0e
commit 5d7e82e540
2 changed files with 4 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ void RDAlsa::LoadSystemConfig()
if(snd_ctl_pcm_info(snd_ctl,pcm_info)==0) {
pcm=0;
while(pcm>=0) {
pcms.push_back(QString().sprintf("%s [%u]",
pcms.push_back(QString().sprintf("%s [%02u]",
(const char *)snd_pcm_info_get_name(pcm_info),pcm+1));
snd_ctl_pcm_next_device(snd_ctl,&pcm);
}