Renaming interface files, now 'core' refers to VACore only, and the classes in...

Renaming interface files, now 'core' refers to VACore only, and the classes in the 'base' project are for interfacing VA
parent 6b6eeeeb
/*
* --------------------------------------------------------------------------------------------
*
* VVV VVV A Virtual Acoustics (VA) | http://www.virtualacoustics.org
* VVV VVV AAA Licensed under the Apache License, Version 2.0
* VVV VVV AAA
* VVV VVV AAA Copyright 2015-2017
* VVVVVV AAA Institute of Technical Acoustics (ITA)
* VVVV AAA RWTH Aachen University
*
* --------------------------------------------------------------------------------------------
*/
/*!
@mainpage
@section intro_sec Introduction
The Virtual Acoustics project is free, open source real-time auralization framework. It is distributed under the terms of the Apache License Version 2.0.
The official website can be found at http://www.virtualacoustics.org
@section license_sec License
Copyright 2015-2017 Institute of Technical Acoustics (ITA), RWTH Aachen University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use the OpenDAFF software package except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You should also have received a [copy of the License](LICENSE.md) with the VA software package.
@section getting_started Getting started
If you are a C++ developer and want to integrate VA into your application, the first contact point should be the VABase interface representad by the #IVAInterface class.
If you are planning to create a binding for any other programming and/or scripting language, also have a look at VANet and the #IVANetClient class.
*/
#ifndef IW_VA
#define IW_VA
#include "VAAudioSignalSource.h"
#include "VABase.h"
#include "VAEvent.h"
#include "VAEventHandlerGlobalLock.h"
#include "VAException.h"
#include "VAInterface.h"
#include "VAObject.h"
#include "VAObjectRegistry.h"
#include "VASamples.h"
#include "VAStruct.h"
#include "VAVersion.h"
#endif // IW_VA
......@@ -21,7 +21,7 @@
#include <string>
// Forward declarations
class IVACore;
class IVAInterface;
//! Interface class for audio signal sources
/**
......@@ -32,7 +32,7 @@ class IVACore;
*
* A data source is always monaural (single channel)
* and can only be connected to a single instance of a
* #IVACore during runtime.
* #IVAInterface during runtime.
*/
class IVAAudioSignalSource
{
......@@ -87,15 +87,15 @@ public:
//! Associated core getter
/**
* Returns the pointer to the associated core (#IVACore) that is
* Returns the pointer to the associated core (#IVAInterface) that is
* registered with the sound source. Will return NULL if the source
* has not been associated to a core yet.
* This method is used by the core to assuure that the sound source
* object has not been associated to another core (not allowed).
*
* @return Pointer to the associated #IVACore, NULL if non present
* @return Pointer to the associated #IVAInterface, NULL if non present
*/
virtual IVACore* GetAssociatedCore() const = 0;
virtual IVAInterface* GetAssociatedCore() const = 0;
//! Stream block getter
/**
......@@ -133,7 +133,7 @@ private:
*
* @sa CVAAudioSignalSourceManager
*/
virtual void HandleRegistration( IVACore* pParentCore ) = 0;
virtual void HandleRegistration( IVAInterface* pParentCore ) = 0;
//! Unregister sound source at a core instance
/**
......@@ -144,7 +144,7 @@ private:
*
* @sa CVAAudioSignalSourceManager
*/
virtual void HandleUnregistration( IVACore* pParentCore ) = 0;
virtual void HandleUnregistration( IVAInterface* pParentCore ) = 0;
friend class CVAAudioSignalSourceManager;
};
......
This diff is collapsed.
......@@ -11,8 +11,8 @@
* --------------------------------------------------------------------------------------------
*/
#ifndef IW_VABASE_CORE
#define IW_VABASE_CORE
#ifndef IW_VABASE_INTERFACE
#define IW_VABASE_INTERFACE
#include <VABaseDefinitions.h>
#include <VABase.h>
......@@ -21,50 +21,15 @@
#include <string>
#include <vector>
/*!
@mainpage
@section intro_sec Introduction
The Virtual Acoustics project is free, open source real-time auralization framework. It is distributed under the terms of the Apache License Version 2.0.
The official website can be found at http://www.virtualacoustics.org
@section license_sec License
Copyright 2015-2017 Institute of Technical Acoustics (ITA), RWTH Aachen University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use the OpenDAFF software package except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You should also have received a [copy of the License](LICENSE.md) with the VA software package.
@section getting_started Getting started
If you are a C++ developer and want to integrate VA into your application, the first contact point should be the VABase interface representad by the #IVACore class.
If you are planning to create a binding for any other programming and/or scripting language, also have a look at VANet and the #IVANetClient class.
*/
// Forward declarations
class VABASE_API CVACoreVersionInfo;
class VABASE_API CVAVersionInfo;
class VABASE_API CVAProgress;
class VABASE_API CVAStruct;
class VABASE_API IVACoreEventHandler;
class VABASE_API IVAEventHandler;
class VABASE_API IVAAudioSignalSource;
//! Interface of the VACore
class VABASE_API IVACore
//! Interface of the VA
class VABASE_API IVAInterface
{
public:
//! Core states
......@@ -152,11 +117,11 @@ public:
* Remember that you should always finialize a core, so that you can
* track errors.
*/
virtual ~IVACore();
virtual ~IVAInterface();
//! Returns the core version
virtual void GetVersionInfo( CVACoreVersionInfo* pVersionInfo ) const = 0;
virtual void GetVersionInfo( CVAVersionInfo* pVersionInfo ) const = 0;
//! Set the output stream for debug messages
virtual void SetDebugStream( std::ostream* posDebug ) = 0;
......@@ -214,7 +179,7 @@ public:
* This method can therefore be called anytime,
* also before initialization and after finalization.
*/
virtual void AttachCoreEventHandler( IVACoreEventHandler* pCoreEventHandler ) = 0;
virtual void AttachEventHandler( IVAEventHandler* pCoreEventHandler ) = 0;
//! Detaches a handler for core events from the core instance
/**
......@@ -226,7 +191,7 @@ public:
* \note When the method returns, it is guaranteed that the handler will not
* receive any further core events and may safely be destroyed.
*/
virtual void DetachCoreEventHandler( IVACoreEventHandler* pCoreEventHandler ) = 0;
virtual void DetachEventHandler( IVAEventHandler* pCoreEventHandler ) = 0;
//! Get all registered modules of the core
......@@ -1305,12 +1270,12 @@ public:
static const std::vector< CVAIntLiteral >& GetLiterals();
protected:
IVACore();
IVAInterface();
private:
// This interface is uncopyable
IVACore( const IVACore& );
IVACore& operator=( const IVACore& );
IVAInterface( const IVAInterface& );
IVAInterface& operator=( const IVAInterface& );
};
#endif // IW_VABASE_CORE
#endif // IW_VABASE_INTERFACE
......@@ -20,7 +20,7 @@
/**
* Diese Datenklasse beschreibt Versionsinformationen ber den VA-Kern
*/
class VABASE_API CVACoreVersionInfo
class VABASE_API CVAVersionInfo
{
public:
std::string sVersion; // Version als Zeichenkette (z.B. "1.02")
......
......@@ -4,18 +4,19 @@ set( RelativeDir "include" )
set( RelativeSourceGroup "include" )
set( DirFiles
VA.h
VAAudioSignalSource.h
VABase.h
VABaseDefinitions.h
VACore.h
VACoreEvent.h
VACoreVersion.h
VAEvent.h
VAEventHandlerGlobalLock.h
VAException.h
VAInterface.h
VAObject.h
VAObjectRegistry.h
VASamples.h
VAStruct.h
VAVersion.h
_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
......
......@@ -11,9 +11,9 @@
* --------------------------------------------------------------------------------------------
*/
#include <VACore.h>
#include <VAInterface.h>
#include <VACoreVersion.h>
#include <VAVersion.h>
#include <VAException.h>
#include <VAStruct.h>
......@@ -23,7 +23,7 @@
const double DECIBEL_MINUS_INFINITY = -1.5E-308;
#define VACORE_REGISTER_LITERAL(L) push_back( CVAIntLiteral( "VACore", #L, IVACore::L ) )
#define VACORE_REGISTER_LITERAL(L) push_back( CVAIntLiteral( "VACore", #L, IVAInterface::L ) )
class CVALiteralsTable : public std::vector<CVAIntLiteral>
{
......@@ -66,13 +66,13 @@ public:
#undef VACORE_REGISTER_LITERAL
// Global literals table
CVALiteralsTable g_oCoreLiterals;
CVALiteralsTable g_oVALiterals;
IVACore::IVACore() {}
IVAInterface::IVAInterface() {}
IVACore::~IVACore() {}
IVAInterface::~IVAInterface() {}
bool IVACore::AddSearchPath( const std::string& sPath )
bool IVAInterface::AddSearchPath( const std::string& sPath )
{
CVAStruct oArg;
oArg[ "addsearchpath" ] = sPath;
......@@ -81,59 +81,59 @@ bool IVACore::AddSearchPath( const std::string& sPath )
return bPathFound;
}
bool IVACore::IsValidAuralizationMode( const int iAuralizationMode )
bool IVAInterface::IsValidAuralizationMode( const int iAuralizationMode )
{
return ( iAuralizationMode >= 0 ) && ( iAuralizationMode <= 2047 );
}
bool IVACore::IsValidVolume( const double dVolume )
bool IVAInterface::IsValidVolume( const double dVolume )
{
return ( dVolume >= 0 );
}
bool IVACore::IsValidAudiofileSignalSourcePlaybackAction( const int iAction )
bool IVAInterface::IsValidAudiofileSignalSourcePlaybackAction( const int iAction )
{
if( iAction == IVACore::VA_PLAYBACK_ACTION_PAUSE )
if( iAction == IVAInterface::VA_PLAYBACK_ACTION_PAUSE )
return true;
if( iAction == IVACore::VA_PLAYBACK_ACTION_PLAY )
if( iAction == IVAInterface::VA_PLAYBACK_ACTION_PLAY )
return true;
if( iAction == IVACore::VA_PLAYBACK_ACTION_STOP )
if( iAction == IVAInterface::VA_PLAYBACK_ACTION_STOP )
return true;
return false;
}
std::string IVACore::GetLogLevelStr( const int iLogLevel )
std::string IVAInterface::GetLogLevelStr( const int iLogLevel )
{
if( iLogLevel == IVACore::VA_LOG_LEVEL_QUIET ) return "QUIET";
if( iLogLevel == IVACore::VA_LOG_LEVEL_ERROR ) return "ERRORS";
if( iLogLevel == IVACore::VA_LOG_LEVEL_WARNING ) return "WARNINGS";
if( iLogLevel == IVACore::VA_LOG_LEVEL_INFO ) return "INFOS";
if( iLogLevel == IVACore::VA_LOG_LEVEL_VERBOSE ) return "VERBOSE";
if( iLogLevel == IVACore::VA_LOG_LEVEL_TRACE ) return "TRACE";
if( iLogLevel == IVAInterface::VA_LOG_LEVEL_QUIET ) return "QUIET";
if( iLogLevel == IVAInterface::VA_LOG_LEVEL_ERROR ) return "ERRORS";
if( iLogLevel == IVAInterface::VA_LOG_LEVEL_WARNING ) return "WARNINGS";
if( iLogLevel == IVAInterface::VA_LOG_LEVEL_INFO ) return "INFOS";
if( iLogLevel == IVAInterface::VA_LOG_LEVEL_VERBOSE ) return "VERBOSE";
if( iLogLevel == IVAInterface::VA_LOG_LEVEL_TRACE ) return "TRACE";
return "UNDEFINED";
}
// Parses a token of an auralization mode part (must be uppercase, used below)
int ParseAuralizationModeToken( const std::string& t )
{
if( t == "DS" ) return IVACore::VA_AURAMODE_DIRECT_SOUND;
if( t == "ER" ) return IVACore::VA_AURAMODE_EARLY_REFLECTIONS;
if( t == "DD" ) return IVACore::VA_AURAMODE_DIFFUSE_DECAY;
if( t == "SD" ) return IVACore::VA_AURAMODE_SOURCE_DIRECTIVITY;
if( t == "MA" ) return IVACore::VA_AURAMODE_MEDIUM_ABSORPTION;
if( t == "TV" ) return IVACore::VA_AURAMODE_TEMP_VAR;
if( t == "SC" ) return IVACore::VA_AURAMODE_SCATTERING;
if( t == "DF" ) return IVACore::VA_AURAMODE_DIFFRACTION;
if( t == "NF" ) return IVACore::VA_AURAMODE_NEARFIELD;
if( t == "DP" ) return IVACore::VA_AURAMODE_DOPPLER;
if( t == "SL" ) return IVACore::VA_AURAMODE_SPREADING_LOSS;
if( t == "TR" ) return IVACore::VA_AURAMODE_TRANSMISSION;
if( t == "AB" ) return IVACore::VA_AURAMODE_ABSORPTION;
if( t == "DS" ) return IVAInterface::VA_AURAMODE_DIRECT_SOUND;
if( t == "ER" ) return IVAInterface::VA_AURAMODE_EARLY_REFLECTIONS;
if( t == "DD" ) return IVAInterface::VA_AURAMODE_DIFFUSE_DECAY;
if( t == "SD" ) return IVAInterface::VA_AURAMODE_SOURCE_DIRECTIVITY;
if( t == "MA" ) return IVAInterface::VA_AURAMODE_MEDIUM_ABSORPTION;
if( t == "TV" ) return IVAInterface::VA_AURAMODE_TEMP_VAR;
if( t == "SC" ) return IVAInterface::VA_AURAMODE_SCATTERING;
if( t == "DF" ) return IVAInterface::VA_AURAMODE_DIFFRACTION;
if( t == "NF" ) return IVAInterface::VA_AURAMODE_NEARFIELD;
if( t == "DP" ) return IVAInterface::VA_AURAMODE_DOPPLER;
if( t == "SL" ) return IVAInterface::VA_AURAMODE_SPREADING_LOSS;
if( t == "TR" ) return IVAInterface::VA_AURAMODE_TRANSMISSION;
if( t == "AB" ) return IVAInterface::VA_AURAMODE_ABSORPTION;
return -1;
}
int IVACore::ParseAuralizationModeStr( const std::string& sModeStr, const int iBaseMode )
int IVAInterface::ParseAuralizationModeStr( const std::string& sModeStr, const int iBaseMode )
{
// Remove all whitespaces, valid chars: Alphabetic + *+-,
std::string s;
......@@ -280,7 +280,7 @@ int IVACore::ParseAuralizationModeStr( const std::string& sModeStr, const int iB
return result;
}
std::string IVACore::GetAuralizationModeStr( const int iAuralizationMode, const bool bShortFormat )
std::string IVAInterface::GetAuralizationModeStr( const int iAuralizationMode, const bool bShortFormat )
{
std::stringstream ss;
......@@ -333,7 +333,7 @@ std::string IVACore::GetAuralizationModeStr( const int iAuralizationMode, const
return s.substr( 0, s.length() - 2 );
}
std::string IVACore::GetVolumeStrDecibel( const double dVolume )
std::string IVAInterface::GetVolumeStrDecibel( const double dVolume )
{
if( !IsValidVolume( dVolume ) )
return "Invalid";
......@@ -352,23 +352,23 @@ std::string IVACore::GetVolumeStrDecibel( const double dVolume )
return ss.str();
}
int IVACore::ParsePlaybackState( const std::string& t )
int IVAInterface::ParsePlaybackState( const std::string& t )
{
std::string T = t;
for( size_t i = 0; i < t.size(); i++ )
T[ i ] = char( toupper( t[ i ] ) );
if( T == "PLAYING" )
return IVACore::VA_PLAYBACK_STATE_PLAYING;
return IVAInterface::VA_PLAYBACK_STATE_PLAYING;
if( T == "STOPPED" )
return IVACore::VA_PLAYBACK_STATE_STOPPED;
return IVAInterface::VA_PLAYBACK_STATE_STOPPED;
if( T == "PAUSED" )
return IVACore::VA_PLAYBACK_STATE_PAUSED;
return IVAInterface::VA_PLAYBACK_STATE_PAUSED;
return -1;
}
std::string IVACore::GetPlaybackStateStr( int iPlayState )
std::string IVAInterface::GetPlaybackStateStr( int iPlayState )
{
if( iPlayState == VA_PLAYBACK_STATE_PAUSED ) return "PAUSED";
if( iPlayState == VA_PLAYBACK_STATE_PLAYING ) return "PLAYING";
......@@ -376,19 +376,19 @@ std::string IVACore::GetPlaybackStateStr( int iPlayState )
return "UNKOWN PLAYBACK STATE";
}
int IVACore::ParsePlaybackAction( const std::string& t )
int IVAInterface::ParsePlaybackAction( const std::string& t )
{
std::string T = t;
for( size_t i = 0; i < t.size(); i++ )
T[ i ] = char( toupper( t[ i ] ) );
if( T == "PLAY" ) return IVACore::VA_PLAYBACK_ACTION_PLAY;
if( T == "STOP" ) return IVACore::VA_PLAYBACK_ACTION_STOP;
if( T == "PAUSE" ) return IVACore::VA_PLAYBACK_ACTION_PAUSE;
if( T == "PLAY" ) return IVAInterface::VA_PLAYBACK_ACTION_PLAY;
if( T == "STOP" ) return IVAInterface::VA_PLAYBACK_ACTION_STOP;
if( T == "PAUSE" ) return IVAInterface::VA_PLAYBACK_ACTION_PAUSE;
return -1;
}
std::string IVACore::GetPlaybackActionStr( int iPlaybackAction )
std::string IVAInterface::GetPlaybackActionStr( int iPlaybackAction )
{
if( iPlaybackAction == VA_PLAYBACK_ACTION_PLAY ) return "PLAY";
if( iPlaybackAction == VA_PLAYBACK_ACTION_STOP ) return "STOP";
......@@ -396,8 +396,8 @@ std::string IVACore::GetPlaybackActionStr( int iPlaybackAction )
return "UNKOWN PLAYBACK ACTION";
}
const std::vector<CVAIntLiteral>& IVACore::GetLiterals()
const std::vector<CVAIntLiteral>& IVAInterface::GetLiterals()
{
return g_oCoreLiterals;
return g_oVALiterals;
}
......@@ -11,161 +11,161 @@
* --------------------------------------------------------------------------------------------
*/
#include <VACoreEvent.h>
#include <VAEvent.h>
#include <VAInterface.h>
#include <VACore.h>
#include <iomanip>
#include <iostream>
#include <sstream>
std::string CVACoreEvent::ToString() const
std::string CVAEvent::ToString() const
{
std::stringstream ss;
switch( iEventType )
{
case VA_COREEVENT_NOTHING:
case VA_EVENT_NOTHING:
ss << "Nothing";
break;
case VA_COREEVENT_INITIALIZED:
case VA_EVENT_INITIALIZED:
ss << "Core " << pSender << " initialized";
break;
case VA_COREEVENT_PROGRESS_UPDATE:
case VA_EVENT_PROGRESS_UPDATE:
ss << "Core " << pSender << " progress update";
break;
case VA_COREEVENT_RESET:
case VA_EVENT_RESET:
ss << "Core reset";
break;
case VA_COREEVENT_FINALIZED:
case VA_EVENT_FINALIZED:
ss << "Core " << pSender << " finalized";
break;
case VA_COREEVENT_DIRECTIVITY_LOADED:
case VA_EVENT_DIRECTIVITY_LOADED:
ss << "Directivity loaded (ID = " << iObjectID << ")";
break;
case VA_COREEVENT_DIRECTIVITY_FREED:
case VA_EVENT_DIRECTIVITY_FREED:
ss << "Directivity " << iObjectID << " freed";
break;
case VA_COREEVENT_SIGNALSOURCE_CREATED:
case VA_EVENT_SIGNALSOURCE_CREATED:
ss << "Signal source created (ID = " << sObjectID << ")";
break;
case VA_COREEVENT_SIGNALSOURCE_DELETED:
case VA_EVENT_SIGNALSOURCE_DELETED:
ss << "Signal source " << sObjectID << " deleted";
break;
case VA_COREEVENT_SAMPLE_LOADED:
case VA_EVENT_SAMPLE_LOADED:
ss << "Sample loaded (ID = " << iObjectID << ")";
break;
case VA_COREEVENT_SAMPLE_FREED:
case VA_EVENT_SAMPLE_FREED:
ss << "Sample " << iObjectID << " freed";
break;
case VA_COREEVENT_SOUND_SOURCE_CREATED:
case VA_EVENT_SOUND_SOURCE_CREATED:
ss << "Sound source created (ID = " << iObjectID
<< ", amode = " << IVACore::GetAuralizationModeStr( iAuralizationMode )
<< ", volume = " << IVACore::GetVolumeStrDecibel( dVolume ) << ")";
<< ", amode = " << IVAInterface::GetAuralizationModeStr( iAuralizationMode )
<< ", volume = " << IVAInterface::GetVolumeStrDecibel( dVolume ) << ")";
break;
case VA_COREEVENT_SOUND_SOURCE_DELETED:
case VA_EVENT_SOUND_SOURCE_DELETED:
ss << "Sound source " << iObjectID << " deleted";
break;
case VA_COREEVENT_SOUND_SOURCE_CHANGED_NAME:
case VA_EVENT_SOUND_SOURCE_CHANGED_NAME:
ss << "Sound source " << iObjectID << " changed name to \"" << sName << "\"";
break;
case VA_COREEVENT_SOUND_SOURCE_CHANGED_SIGNALSOURCE:
case VA_EVENT_SOUND_SOURCE_CHANGED_SIGNALSOURCE:
ss << "Sound source " << iObjectID << " changed signal source to \"" << sParam << "\"";
break;
case VA_COREEVENT_SOUND_SOURCE_CHANGED_AURALIZATIONMODE:
ss << "Sound source " << iObjectID << " changed auralization mode to " << IVACore::GetAuralizationModeStr( iAuralizationMode );
case VA_EVENT_SOUND_SOURCE_CHANGED_AURALIZATIONMODE:
ss << "Sound source " << iObjectID << " changed auralization mode to " << IVAInterface::GetAuralizationModeStr( iAuralizationMode );
break;
case VA_COREEVENT_SOUND_SOURCE_CHANGED_SOUND_POWER:
ss << "Sound source " << iObjectID << " changed volume to " << IVACore::GetVolumeStrDecibel( dVolume );
case VA_EVENT_SOUND_SOURCE_CHANGED_SOUND_POWER:
ss << "Sound source " << iObjectID << " changed volume to " << IVAInterface::GetVolumeStrDecibel( dVolume );
break;
case VA_COREEVENT_SOUND_SOURCE_CHANGED_MUTING:
case VA_EVENT_SOUND_SOURCE_CHANGED_MUTING:
ss << "Sound source " << iObjectID << ( bMuted ? " muted" : " unmuted" );
break;
case VA_COREEVENT_SOUND_SOURCE_CHANGED_POSE:
case VA_EVENT_SOUND_SOURCE_CHANGED_POSE:
ss << "Sound source " << iObjectID << " changed position orientation" << std::endl
<< "P=" << vPos << ", "
<< "V=" << vView << ", "
<< "U=" << vUp;
break;
case VA_COREEVENT_SOUND_SOURCE_CHANGED_DIRECTIVITY:
case VA_EVENT_SOUND_SOURCE_CHANGED_DIRECTIVITY:
ss << "Sound source " << iObjectID << " changed directivity to " << iParamID;
break;
case VA_COREEVENT_SOUND_RECEIVER_CREATED:
case VA_EVENT_SOUND_RECEIVER_CREATED:
ss << "Listener created (ID = " << iObjectID
<< ", amode = " << IVACore::GetAuralizationModeStr( iAuralizationMode ) << ")";
<< ", amode = " << IVAInterface::GetAuralizationModeStr( iAuralizationMode ) << ")";
break;
case VA_COREEVENT_SOUND_RECEIVER_DELETED:
case VA_EVENT_SOUND_RECEIVER_DELETED:
ss << "Listener " << iObjectID << " deleted";
break;
case VA_COREEVENT_SOUND_RECEIVER_CHANGED_NAME:
case VA_EVENT_SOUND_RECEIVER_CHANGED_NAME:
ss << "Listener " << iObjectID << " changed name to \"" << sName << "\"";
break;
case VA_COREEVENT_SOUND_RECEIVER_CHANGED_AURALIZATIONMODE:
ss << "Listener " << iObjectID << " changed auralization mode to " << IVACore::GetAuralizationModeStr( iAuralizationMode );
case VA_EVENT_SOUND_RECEIVER_CHANGED_AURALIZATIONMODE:
ss << "Listener " << iObjectID << " changed auralization mode to " << IVAInterface::GetAuralizationModeStr( iAuralizationMode );
break;
case VA_COREEVENT_SOUND_RECEIVER_CHANGED_DIRECTIVITY:
case VA_EVENT_SOUND_RECEIVER_CHANGED_DIRECTIVITY:
ss << "Listener " << iObjectID << " is assigned HRIR dataset " << iParamID;
break;
case VA_COREEVENT_SOUND_RECEIVER_CHANGED_POSE:
case VA_EVENT_SOUND_RECEIVER_CHANGED_POSE:
ss << "Listener " << iObjectID << " changed position orientation" << std::endl
<< "P=" << vPos << ", "
<< "V=" << vView << ", "
<< "U=" << vUp;
break;
case VA_COREEVENT_PORTAL_CHANGED_NAME:
case VA_EVENT_PORTAL_CHANGED_NAME:
ss << "Portal " << iObjectID << " changed name to \"" << sName << "\"";
break;
case VA_COREEVENT_PORTAL_CHANGED_PARAMETER:
case VA_EVENT_PORTAL_CHANGED_PARAMETER:
ss << "Portal " << iObjectID << " changed state to \"" << std::setprecision( 3 ) << std::fixed << dState << "\"";
break;
case VA_COREEVENT_ACTIVE_LISTENER_CHANGED:
case VA_EVENT_ACTIVE_LISTENER_CHANGED:
ss << "Listener " << iObjectID << " set as active listener";
break;
case VA_COREEVENT_INPUTGAIN_CHANGED:
ss << "Gain of input " << iIndex << " set to " << IVACore::GetVolumeStrDecibel( dVolume );
case VA_EVENT_INPUTGAIN_CHANGED:
ss << "Gain of input " << iIndex << " set to " << IVAInterface::GetVolumeStrDecibel( dVolume );
break;
case VA_COREEVENT_OUTPUTGAIN_CHANGED:
ss << "Output gain set to " << IVACore::GetVolumeStrDecibel( dVolume );
case VA_EVENT_OUTPUTGAIN_CHANGED:
ss << "Output gain set to " << IVAInterface::GetVolumeStrDecibel( dVolume );
break;
case VA_COREEVENT_OUTPUTMUTING_CHANGED:
case VA_EVENT_OUTPUTMUTING_CHANGED:
ss << "Global muting " << ( bMuted ? "enabled" : "disabled" );
break;
case VA_COREEVENT_GLOBALAURALIZATIONMODE_CHANGED:
ss << "Global auralization mode set to " << IVACore::GetAuralizationModeStr( iAuralizationMode );
case VA_EVENT_GLOBALAURALIZATIONMODE_CHANGED:
ss << "Global auralization mode set to " << IVAInterface::GetAuralizationModeStr( iAuralizationMode );
break;
case VA_COREEVENT_MEASURES_UPDATE:
case VA_EVENT_MEASURES_UPDATE:
/* TODO:
ss << "Audiostream peaks update: inputs=(" << FloatVecToString(vfInputPeaks, 3)
<< "), outputs=(" << FloatVecToString(vfOutputPeaks, 3) << ")";
......
This diff is collapsed.
......@@ -11,11 +11,11 @@
* --------------------------------------------------------------------------------------------
*/
#include <VACoreVersion.h>
#include <VAVersion.h>
#include <sstream>
std::string CVACoreVersionInfo::ToString() const
std::string CVAVersionInfo::ToString() const
{
// Output formatting: "VACore 1.24 [FLAGS] (COMMENT)"
std::stringstream ss;
......
......@@ -5,15 +5,15 @@ set( RelativeSourceGroup "Source Files" )
set( DirFiles
VABase.cpp
VACore.cpp
VACoreEvent.cpp
VACoreVersion.cpp
VAEvent.cpp
VAEventHandlerGlobalLock.cpp
VAException.cpp
VAInterface.cpp
VAObject.cpp
VAObjectRegistry.cpp
VASamples.cpp
VAStruct.cpp
VAVersion.cpp
_SourceFiles.cmake
)
set( DirFiles_SourceGroup "${RelativeSourceGroup}" )
......
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