mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-15 09:01:14 +01:00
2019-08-26 Fred Gleason <fredg@paravelsystems.com>
* Reimplemented the '--autogen' directive in rdalsaconfig(8). * Added a '--rewrite' directive in rdalsaconfig(8).
This commit is contained in:
@@ -43,6 +43,7 @@ RDAlsaCard::RDAlsaCard(snd_ctl_t *ctl,int index)
|
||||
card_pcm_names.push_back(snd_pcm_info_get_name(pcm_info)+
|
||||
QString().sprintf("[%02d]",pcm+1));
|
||||
snd_ctl_pcm_next_device(ctl,&pcm);
|
||||
card_enableds.push_back(false);
|
||||
}
|
||||
}
|
||||
snd_pcm_info_free(pcm_info);
|
||||
@@ -86,6 +87,18 @@ QString RDAlsaCard::mixerName() const
|
||||
}
|
||||
|
||||
|
||||
bool RDAlsaCard::isEnabled(int pcm_num) const
|
||||
{
|
||||
return card_enableds.at(pcm_num);
|
||||
}
|
||||
|
||||
|
||||
void RDAlsaCard::setEnabled(int pcm_num,bool state)
|
||||
{
|
||||
card_enableds[pcm_num]=state;
|
||||
}
|
||||
|
||||
|
||||
QString RDAlsaCard::dump() const
|
||||
{
|
||||
QString ret=QString().sprintf("Card %d\n",index());
|
||||
|
||||
Reference in New Issue
Block a user