예제 #1
0
void RGBMatrix::setAlgorithm(RGBAlgorithm* algo)
{
    if (m_algorithm != NULL)
        delete m_algorithm;
    m_algorithm = algo;
    if (m_algorithm != NULL && m_algorithm->type() == RGBAlgorithm::Audio)
    {
        RGBAudio *audio = static_cast<RGBAudio*>(m_algorithm);
        audio->setAudioCapture(doc()->audioInputCapture());
    }
}
예제 #2
0
void RGBMatrix::setAlgorithm(RGBAlgorithm* algo)
{
    {
        QMutexLocker algorithmLocker(&m_algorithmMutex);
        delete m_algorithm;
        m_algorithm = algo;
        if (m_algorithm != NULL && m_algorithm->type() == RGBAlgorithm::Audio)
        {
            RGBAudio *audio = static_cast<RGBAudio*>(m_algorithm);
            audio->setAudioCapture(doc()->audioInputCapture());
        }
    }
    emit changed(id());
}
예제 #3
0
파일: rgbaudio.cpp 프로젝트: CShark/qlcplus
RGBAudio::RGBAudio(const RGBAudio& a, QObject *parent)
    : QObject(parent)
    , RGBAlgorithm(a.doc())
{
}