Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
VABase
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
VABase
Commits
da7f8d98
Commit
da7f8d98
authored
Oct 06, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing Listener
parent
c5b929ab
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
65 deletions
+65
-65
include/VABase.h
include/VABase.h
+1
-1
include/VAEvent.h
include/VAEvent.h
+5
-5
include/VAInterface.h
include/VAInterface.h
+51
-51
src/VAEvent.cpp
src/VAEvent.cpp
+8
-8
No files found.
include/VABase.h
View file @
da7f8d98
...
...
@@ -471,7 +471,7 @@ public:
};
//! Data class containing information of a
listen
er (acoustic receiver)
//! Data class containing information of a
sound receiv
er (acoustic receiver)
class
VABASE_API
CVASoundReceiverInfo
{
public:
...
...
include/VAEvent.h
View file @
da7f8d98
...
...
@@ -69,7 +69,7 @@ public:
static
const
uint64_t
VA_EVENT_PORTAL_CHANGED_POSE
=
VA_BIT64
(
27
);
static
const
uint64_t
VA_EVENT_PORTAL_CHANGED_PARAMETER
=
VA_BIT64
(
41
);
static
const
uint64_t
VA_EVENT_ACTIVE_
LISTEN
ER_CHANGED
=
VA_BIT64
(
28
);
static
const
uint64_t
VA_EVENT_ACTIVE_
SOUND_RECEIV
ER_CHANGED
=
VA_BIT64
(
28
);
static
const
uint64_t
VA_EVENT_INPUTGAIN_CHANGED
=
VA_BIT64
(
29
);
static
const
uint64_t
VA_EVENT_INPUTMUTING_CHANGED
=
VA_BIT64
(
30
);
static
const
uint64_t
VA_EVENT_OUTPUTGAIN_CHANGED
=
VA_BIT64
(
31
);
...
...
@@ -106,8 +106,8 @@ public:
VA_EVENT_SOUND_SOURCE_CHANGED_POSE
|
VA_EVENT_SOUND_SOURCE_CHANGED_DIRECTIVITY
;
// Selector mask for
listen
er related events
static
const
uint64_t
VA_EVENT_
LISTEN
ER_EVENT
=
VA_EVENT_SOUND_RECEIVER_CREATED
|
// Selector mask for
sound receiv
er related events
static
const
uint64_t
VA_EVENT_
SOUND_RECEIV
ER_EVENT
=
VA_EVENT_SOUND_RECEIVER_CREATED
|
VA_EVENT_SOUND_RECEIVER_DELETED
|
VA_EVENT_SOUND_RECEIVER_CHANGED_NAME
|
VA_EVENT_SOUND_RECEIVER_CHANGED_AURALIZATIONMODE
|
...
...
@@ -128,8 +128,8 @@ public:
VA_EVENT_SOUND_SOURCE_CHANGED_POSE
|
VA_EVENT_SOUND_SOURCE_CHANGED_DIRECTIVITY
;
// Selector mask for
listen
er modification event
static
const
uint64_t
VA_EVENT_
LISTEN
ER_MODIFICATION
=
VA_EVENT_SOUND_RECEIVER_CHANGED_NAME
|
// Selector mask for
sound receiv
er modification event
static
const
uint64_t
VA_EVENT_
SOUND_RECEIV
ER_MODIFICATION
=
VA_EVENT_SOUND_RECEIVER_CHANGED_NAME
|
VA_EVENT_SOUND_RECEIVER_CHANGED_AURALIZATIONMODE
|
VA_EVENT_SOUND_RECEIVER_CHANGED_DIRECTIVITY
|
VA_EVENT_SOUND_RECEIVER_CHANGED_POSE
;
...
...
include/VAInterface.h
View file @
da7f8d98
...
...
@@ -725,7 +725,7 @@ public:
//! Get sound source parameters
/**
* This general parameter getter can be used for quick solutions retrieving
*
listen
er parameters without introducing new methods to the main interface.
*
sound receiv
er parameters without introducing new methods to the main interface.
*
* \param iSoundSourceID Sound source identifier
* \param oParams Magic struct with the parameters that are requested
...
...
@@ -784,24 +784,24 @@ public:
//! Creates a sound receiver
/**
* This method creates a new sound receiver (
listen
er).
* This method creates a new sound receiver (
sound receiv
er).
*
* @param[in] sName Name (optional)
*
* \return ID of the new
listen
er, if the method succeeded, -1, otherwise
* \return ID of the new
sound receiv
er, if the method succeeded, -1, otherwise
*/
virtual
int
CreateSoundReceiver
(
const
std
::
string
&
sName
=
""
)
=
0
;
//! Creates a
listen
er explicitly for a given renderer
//! Creates a
sound receiv
er explicitly for a given renderer
/**
* This method creates a new
listen
er for a special renderer, only.
* the
listen
er will be skipped by all other renderers. See
* This method creates a new
sound receiv
er for a special renderer, only.
* the
sound receiv
er will be skipped by all other renderers. See
* GetRendererLister() for a list of all available renderer identifier.
*
* \param sName Name
* \param sRendererID Renderer identifier
*
* \return ID of the new
listen
er, if the method succeeded and -1, otherwise
* \return ID of the new
sound receiv
er, if the method succeeded and -1, otherwise
*/
virtual
int
CreateSoundReceiverExplicitRenderer
(
const
std
::
string
&
sRendererID
,
const
std
::
string
&
sName
=
""
)
=
0
;
...
...
@@ -817,21 +817,21 @@ public:
virtual
CVASoundReceiverInfo
GetSoundReceiverInfo
(
const
int
iID
)
const
=
0
;
//! Enables or disables a virtual
listener (removes the listen
er from audio processing)
//! Enables or disables a virtual
sound receiver (removes the sound receiv
er from audio processing)
/**
* @param[in] i
ListenerID Listen
er identifier
* @param[in] i
SoundReceiverID SoundReceiv
er identifier
* @param[in] bEnabled Enable (true) or disable (false) sound source
*
* @sa Get
Listen
erEnabled()
* @sa Get
SoundReceiv
erEnabled()
*/
virtual
void
SetSoundReceiverEnabled
(
const
int
iID
,
const
bool
bEnabled
=
true
)
=
0
;
//! Returns sound receiver enabled/disabled status
/**
* @param[in] i
ListenerID Listen
er identifier
* @param[in] i
SoundReceiverID SoundReceiv
er identifier
* @return Enabled (true) or disabled (false)
*
* @sa Set
Listen
erEnabled()
* @sa Set
SoundReceiv
erEnabled()
*/
virtual
bool
GetSoundReceiverEnabled
(
const
int
iID
)
const
=
0
;
...
...
@@ -850,31 +850,31 @@ public:
*/
virtual
void
SetSoundReceiverAuralizationMode
(
const
int
iSoundReceiverID
,
const
int
iAuralizationMode
)
=
0
;
//! Set
listen
er parameters
//! Set
sound receiv
er parameters
/**
* This general parameter setter can be used for quick solutions changing
*
listen
er parameters without introducing new methods to the main interface.
*
sound receiv
er parameters without introducing new methods to the main interface.
*
* \param i
ListenerID Listen
er identifier
* \param i
SoundReceiverID SoundReceiv
er identifier
* \param oParams Magic struct with the parameters
*/
virtual
void
SetSoundReceiverParameters
(
const
int
iID
,
const
CVAStruct
&
oParams
)
=
0
;
//! Get
listen
er parameters
//! Get
sound receiv
er parameters
/**
* This general parameter getter can be used for quick solutions retrieving
*
listen
er parameters without introducing new methods to the main interface.
*
sound receiv
er parameters without introducing new methods to the main interface.
*
* \param i
ListenerID Listen
er identifier
* \param i
SoundReceiverID SoundReceiv
er identifier
* \param oParams Magic struct with the parameters that are requested
* \return Magic struct with the parameter values requested
*/
virtual
CVAStruct
GetSoundReceiverParameters
(
const
int
iID
,
const
CVAStruct
&
oArgs
)
const
=
0
;
//! Returns for a
listen
er the ID of the assigned HRIR dataset
//! Returns for a
sound receiv
er the ID of the assigned HRIR dataset
virtual
int
GetSoundReceiverDirectivity
(
const
int
iID
)
const
=
0
;
//! Set the HRIR dataset for a
listen
er
//! Set the HRIR dataset for a
sound receiv
er
/**
* \note In order to set no HRIR dataset, you can pass -1 to the method.
*/
...
...
@@ -895,7 +895,7 @@ public:
//! Position eines Hörers setzen (Positionsvektor)
/**
* - Sets the velocity of the
listen
er to zero
* - Sets the velocity of the
sound receiv
er to zero
*/
virtual
void
SetSoundReceiverPosition
(
const
int
iID
,
const
VAVec3
&
v3Pos
)
=
0
;
...
...
@@ -914,9 +914,9 @@ public:
virtual
VAQuat
GetSoundReceiverHeadAboveTorsoOrientation
(
const
int
iID
)
const
=
0
;
virtual
void
SetSoundReceiverHeadAboveTorsoOrientation
(
const
int
iID
,
const
VAQuat
&
qOrient
)
=
0
;
//! Returns the position and orientation of the real-world
listen
er's head
//! Returns the position and orientation of the real-world
sound receiv
er's head
/**
* \note The parameter i
Listen
erID has been added for future versions and is
* \note The parameter i
SoundReceiv
erID has been added for future versions and is
* currently unsupported. You can set it any value you like.
*
* @note Coordinates refer the to center of the head on the axis
...
...
@@ -924,12 +924,12 @@ public:
*/
virtual
void
GetSoundReceiverRealWorldPositionOrientationVU
(
const
int
iID
,
VAVec3
&
v3Pos
,
VAVec3
&
v3View
,
VAVec3
&
v3Up
)
const
=
0
;
//! Updates the position and orientation of the real-world
listen
er's head
//! Updates the position and orientation of the real-world
sound receiv
er's head
/**
* This function is used to provide the crosstalk-cancellation module
* with the current position of the
listen
ers head in the real-world.
* with the current position of the
sound receiv
ers head in the real-world.
*
* \note The parameter i
Listen
erID has been added for future versions and is
* \note The parameter i
SoundReceiv
erID has been added for future versions and is
* currently unsupported. You can set it any value you like.
*
* @note Coordinates refer the to center of the head on the axis
...
...
@@ -1141,52 +1141,52 @@ public:
*/
virtual
void
SetGlobalAuralizationMode
(
const
int
iAuralizationMode
)
=
0
;
//! Returns the (global) active
listen
er
//! Returns the (global) active
sound receiv
er
/**
* The (global) active
listener is the virtual listen
er for which
* the renderers will route the output for, if the
listen
er is
* The (global) active
sound receiver is the virtual sound receiv
er for which
* the renderers will route the output for, if the
sound receiv
er is
* not used explicitly for a given renderer.
*
* @return Active
listener id or -1, if no (global) active listen
er
* @return Active
sound receiver id or -1, if no (global) active sound receiv
er
*
* @sa GetActive
Listen
erExplicitRenderer
* @sa GetActive
SoundReceiv
erExplicitRenderer
*/
virtual
int
GetActive
Listen
er
()
const
=
0
;
virtual
int
GetActive
SoundReceiv
er
()
const
=
0
;
//! Sets the active
listen
er
//! Sets the active
sound receiv
er
/**
* The renderers produce the output of this
listen
er, only
* (if
listen
er is not explicitly created for another renderer)
* The renderers produce the output of this
sound receiv
er, only
* (if
sound receiv
er is not explicitly created for another renderer)
*
* @param[in] i
ListenerID Listen
er identifier
* @param[in] i
SoundReceiverID SoundReceiv
er identifier
*
* @sa GetActive
Listen
er
* @sa SetActive
Listen
erExplicitRenderer
* @sa GetActive
SoundReceiv
er
* @sa SetActive
SoundReceiv
erExplicitRenderer
*/
virtual
void
SetActive
Listen
er
(
const
int
iSoundReceiverID
)
=
0
;
virtual
void
SetActive
SoundReceiv
er
(
const
int
iSoundReceiverID
)
=
0
;
//! Returns the active
listen
er of an explicit renderer
//! Returns the active
sound receiv
er of an explicit renderer
/**
* @param[in] sRendererID Renderer identifier
* @return Active
listener id or -1, if the listen
er is not activated explicitly
* @return Active
sound receiver id or -1, if the sound receiv
er is not activated explicitly
*
* @sa GetActive
Listen
er
* @sa SetActive
Listen
erExplicitRenderer
* @sa GetActive
SoundReceiv
er
* @sa SetActive
SoundReceiv
erExplicitRenderer
*/
virtual
int
GetActive
Listen
erExplicitRenderer
(
const
std
::
string
&
sRendererID
)
const
=
0
;
virtual
int
GetActive
SoundReceiv
erExplicitRenderer
(
const
std
::
string
&
sRendererID
)
const
=
0
;
//! Sets the active
listen
er for an explicit renderer
//! Sets the active
sound receiv
er for an explicit renderer
/**
* The renderers forward the output of this
listen
er, only
* (if
listen
er is not explicitly created for another renderer)
* The renderers forward the output of this
sound receiv
er, only
* (if
sound receiv
er is not explicitly created for another renderer)
*
* @param[in] i
ListenerID Listen
er identifier
* @param[in] i
SoundReceiverID SoundReceiv
er identifier
* @param[in] sRendererID Renderer identifier
*
* @sa GetActive
Listen
erExplicitRenderer
* @sa SetActive
Listen
er
* @sa GetActive
SoundReceiv
erExplicitRenderer
* @sa SetActive
SoundReceiv
er
*/
virtual
void
SetActive
Listen
erExplicitRenderer
(
const
int
iSoundReceiverID
,
const
std
::
string
&
sRendererID
)
=
0
;
virtual
void
SetActive
SoundReceiv
erExplicitRenderer
(
const
int
iSoundReceiverID
,
const
std
::
string
&
sRendererID
)
=
0
;
//! Get current core time
/**
...
...
src/VAEvent.cpp
View file @
da7f8d98
...
...
@@ -110,28 +110,28 @@ std::string CVAEvent::ToString() const
break
;
case
VA_EVENT_SOUND_RECEIVER_CREATED
:
ss
<<
"
Listen
er created (ID = "
<<
iObjectID
ss
<<
"
Sound receiv
er created (ID = "
<<
iObjectID
<<
", amode = "
<<
IVAInterface
::
GetAuralizationModeStr
(
iAuralizationMode
)
<<
")"
;
break
;
case
VA_EVENT_SOUND_RECEIVER_DELETED
:
ss
<<
"
Listen
er "
<<
iObjectID
<<
" deleted"
;
ss
<<
"
Sound receiv
er "
<<
iObjectID
<<
" deleted"
;
break
;
case
VA_EVENT_SOUND_RECEIVER_CHANGED_NAME
:
ss
<<
"
Listen
er "
<<
iObjectID
<<
" changed name to
\"
"
<<
sName
<<
"
\"
"
;
ss
<<
"
Sound receiv
er "
<<
iObjectID
<<
" changed name to
\"
"
<<
sName
<<
"
\"
"
;
break
;
case
VA_EVENT_SOUND_RECEIVER_CHANGED_AURALIZATIONMODE
:
ss
<<
"
Listen
er "
<<
iObjectID
<<
" changed auralization mode to "
<<
IVAInterface
::
GetAuralizationModeStr
(
iAuralizationMode
);
ss
<<
"
Sound receiv
er "
<<
iObjectID
<<
" changed auralization mode to "
<<
IVAInterface
::
GetAuralizationModeStr
(
iAuralizationMode
);
break
;
case
VA_EVENT_SOUND_RECEIVER_CHANGED_DIRECTIVITY
:
ss
<<
"
Listen
er "
<<
iObjectID
<<
" is assigned HRIR dataset "
<<
iParamID
;
ss
<<
"
Sound receiv
er "
<<
iObjectID
<<
" is assigned HRIR dataset "
<<
iParamID
;
break
;
case
VA_EVENT_SOUND_RECEIVER_CHANGED_POSE
:
ss
<<
"
Listen
er "
<<
iObjectID
<<
" changed position orientation"
<<
std
::
endl
ss
<<
"
Sound receiv
er "
<<
iObjectID
<<
" changed position orientation"
<<
std
::
endl
<<
"P="
<<
vPos
<<
", "
<<
"V="
<<
vView
<<
", "
<<
"U="
<<
vUp
;
...
...
@@ -145,8 +145,8 @@ std::string CVAEvent::ToString() const
ss
<<
"Portal "
<<
iObjectID
<<
" changed state to
\"
"
<<
std
::
setprecision
(
3
)
<<
std
::
fixed
<<
dState
<<
"
\"
"
;
break
;
case
VA_EVENT_ACTIVE_
LISTEN
ER_CHANGED
:
ss
<<
"
Listener "
<<
iObjectID
<<
" set as active listen
er"
;
case
VA_EVENT_ACTIVE_
SOUND_RECEIV
ER_CHANGED
:
ss
<<
"
Sound receiver "
<<
iObjectID
<<
" set as active sound receiv
er"
;
break
;
case
VA_EVENT_INPUTGAIN_CHANGED
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment