prototipo de filtro funcionando, muy sucio.
This commit is contained in:
parent
8c69da5f9d
commit
7cd4c8fbd8
6 changed files with 276 additions and 98 deletions
|
|
@ -43,11 +43,16 @@ libreMediaServerAudio::libreMediaServerAudio()
|
|||
Q_CHECK_PTR(m_ola);
|
||||
m_ola->blockSignals(true);
|
||||
m_ola->registerUniverse();
|
||||
m_mae.startEngine();
|
||||
if (!m_mae.startEngine()) {
|
||||
cout << "Can not start Audio Engine!" << endl;
|
||||
this->~libreMediaServerAudio();
|
||||
}
|
||||
uint *audioDevList = m_settings->getAudioDeviceId();
|
||||
for (uint i = 0; i < m_settings->getAudioDeviceQty(); i++)
|
||||
m_mae.startDevice(audioDevList[i], i);
|
||||
qDebug("Core init Complete. Start reading DMX.");
|
||||
if (!m_mae.startDevice(audioDevList, m_settings->getAudioDeviceQty())) {
|
||||
cout << "Can not start Audio Device!" << audioDevList << endl;
|
||||
this->~libreMediaServerAudio();
|
||||
}
|
||||
cout << "Core init Complete. Start reading DMX." << endl;
|
||||
m_ola->blockSignals(false);
|
||||
#ifdef NOGUI
|
||||
m_ola->start(QThread::TimeCriticalPriority );
|
||||
|
|
@ -58,6 +63,9 @@ libreMediaServerAudio::~libreMediaServerAudio()
|
|||
{
|
||||
m_ola->stop();
|
||||
m_mae.stopEngine();
|
||||
sleep(1);
|
||||
cout << "bye!" << endl;
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void libreMediaServerAudio::loadMedia(int layer, int folder, int file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue