trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2018

kmix mixer_backend.cpp

From: deloptes <deloptes@...>
Date: Fri, 18 May 2018 13:08:41 +0200
Hi,
I looked yesterday in kmix code and I see this, which I think is a bit
wrong, or I do not understand why close() is called even if open fails - we
just want to know if mixer is valid.

bool Mixer_Backend::isValid() {
        bool valid = false;
        int ret = open();
        if ( ret == 0  && m_mixDevices.count() > 0) {
          valid = true;
        }
        close();
        return valid;
}

regards