Exemplo n.º 1
0
void Context::setCardProfile(quint32 index, const QString &profile)
{
    qCDebug(PLASMAPA) << index << profile;
    if (!PAOperation(pa_context_set_card_profile_by_index(m_context,
                                                          index,
                                                          profile.toUtf8().constData(),
                                                          nullptr, nullptr))) {
        qCWarning(PLASMAPA) << "pa_context_set_card_profile_by_index failed";
        return;
    }
}
Exemplo n.º 2
0
void backend_card_profile_set(context_t *c, backend_entry_type type, uint32_t idx, const char *active) {
    pa_context_set_card_profile_by_index(c->context, idx, active, NULL, NULL);
}