Overriding log level as there is still an issue with the Qt text edit widget...

Overriding log level as there is still an issue with the Qt text edit widget and the VA core log output when a lot is going on
parent f623d123
......@@ -119,11 +119,10 @@ void RedstartRunCirculatingSourceDialog::CreateScene()
VA_EXCEPT2( MODAL_ERROR, "No connection to a VA core available" );
m_sSignalID = m_pVAInterface->CreateSignalSourceBufferFromFile( ui->lineEdit_macro_DemoSound->text().toStdString() ).c_str();
m_pVAInterface->SetSignalSourceBufferPlaybackAction( m_sSignalID.toStdString(), IVAInterface::VA_PLAYBACK_ACTION_PLAY );
m_pVAInterface->SetSignalSourceBufferLooping( m_sSignalID.toStdString(), true );
m_iSourceID = m_pVAInterface->CreateSoundSource( "Redstart C++ circulating sound source" );
m_pVAInterface->SetSoundSourcePose( m_iSourceID, VAVec3( 2.0f, 1.7f, 2.0f ), VAQuat( 0.0f, 0.0f, 0.0f, 1.0f ) );
//m_pVAInterface->SetSoundSourcePose( m_iSourceID, VAVec3( 2.0f, 1.7f, 2.0f ), VAQuat( 0.0f, 0.0f, 0.0f, 1.0f ) );
m_pVAInterface->SetSoundSourceSignalSource( m_iSourceID, m_sSignalID.toStdString() );
......@@ -155,6 +154,10 @@ void RedstartRunCirculatingSourceDialog::UpdateScene()
{
m_pVAInterface->SetSoundSourcePosition( m_iSourceID, v3Pos );
v3NewPos = m_pVAInterface->GetSoundSourcePosition( m_iSourceID );
// Delayed plaback start so that no part of sentence is missing (source has to be placed in space first)
if( m_pVAInterface->GetSignalSourceBufferPlaybackState( m_sSignalID.toStdString() ) != IVAInterface::VA_PLAYBACK_STATE_PLAYING )
m_pVAInterface->SetSignalSourceBufferPlaybackAction( m_sSignalID.toStdString(), IVAInterface::VA_PLAYBACK_ACTION_PLAY );
}
catch( CVAException& e )
{
......
......@@ -316,6 +316,7 @@ void RedstartWindow::PostCoreStart()
const CVAStruct oReturn = m_pVAInterface->CallModule( "VACore", oArgs );
const int iCurrentLogLevel = oReturn[ "loglevel" ];
ui->comboBox_core_settings_log_level->setCurrentIndex( iCurrentLogLevel );
ui->comboBox_core_settings_log_level->setCurrentIndex( IVAInterface::VA_LOG_LEVEL_WARNING ); // override until problem with Qt line edit is fixed
CVAStruct oSearchPaths = m_pVAInterface->GetSearchPaths();
QStringList sPathList;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment