Adaptions to latest vatlib

The latest vatlib fixes some ambigious methods in the interface and
makes them more clear. Additional it adds a severity level to the
log handlers. Both causing the header to be source incompatible and
therefore need smaller changes in swift.
This commit is contained in:
Roland Winklmeier
2015-03-19 20:59:24 +01:00
committed by Klaus Basan
parent 0760a67138
commit afed33dbbf
4 changed files with 13 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ namespace BlackCore
m_audioService(Vat_CreateAudioService()),
m_udpPort(Vat_CreateUDPAudioPort(m_audioService.data(), 3782))
{
Vat_SetVoiceErrorHandler(CVoiceVatlib::voiceErrorHandler);
Vat_SetVoiceLogHandler(SeverityError, CVoiceVatlib::voiceLogHandler);
// do processing
this->startTimer(10);
@@ -147,7 +147,7 @@ namespace BlackCore
Vat_ExecuteTasks(m_audioService.data());
}
void CVoiceVatlib::voiceErrorHandler(const char *message)
void CVoiceVatlib::voiceLogHandler(SeverityLevel /** severity **/, const char *message)
{
CLogMessage(static_cast<CVoiceVatlib*>(nullptr)).error(message);
}