mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
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:
committed by
Klaus Basan
parent
0760a67138
commit
afed33dbbf
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user