Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VAUnity
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
VAUnity
Commits
3115eb2e
Commit
3115eb2e
authored
Apr 25, 2017
by
Maurice Tayeb Andreas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renderer deaktiviert wenn ReverbTime < 0.3 s
parent
52324fd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
VACS.cs
VACS.cs
+8
-0
VAUListener.cs
VAUListener.cs
+3
-5
No files found.
VACS.cs
View file @
3115eb2e
...
...
@@ -263,6 +263,14 @@ namespace VA
{
return
NativeAddSearchPath
(
_NetClient
,
SearchPath
);
}
public
void
SetRenderingModuleMuted
(
string
sModuleID
,
bool
bMuted
)
{
NativeSetRenderingModuleMuted
(
_NetClient
,
sModuleID
,
bMuted
);
}
public
bool
IsRenderingModuleMuted
(
IntPtr
pClient
,
string
sModuleID
)
{
return
NativeIsRenderingModuleMuted
(
_NetClient
,
sModuleID
);
}
/*
* Native imported functions from C++ unmanaged library declared private, so they can not be accessed
* directly through C# class method
...
...
VAUListener.cs
View file @
3115eb2e
...
...
@@ -16,7 +16,6 @@ public class VAUListener : MonoBehaviour {
private
AudioReverbZone
[]
reverbZones
;
private
float
currentArtificialReverberationTime
=
0f
;
private
float
shadowReverbTime
;
private
VAUAuralizationMode
globalAuraMode
;
public
delegate
void
ReverbTimeChangedDelegate
(
double
reverbTime
);
public
event
ReverbTimeChangedDelegate
ReverbTimeChanged
;
...
...
@@ -41,7 +40,6 @@ public class VAUListener : MonoBehaviour {
SetListenerPositionOrientation
();
_VA
.
SetArtificalReverbarationTime
(
VAAudioRenderer
,
0.3f
);
reverbZones
=
FindObjectsOfType
(
typeof
(
AudioReverbZone
))
as
AudioReverbZone
[];
globalAuraMode
=
FindObjectOfType
<
VAUAdapter
>().
gameObject
.
GetComponent
<
VAUAuralizationMode
>();
}
void
OnEnable
()
...
...
@@ -99,11 +97,11 @@ public class VAUListener : MonoBehaviour {
if
(
shadowReverbTime
==
actReverbTime
)
return
;
if
(
actReverbTime
<
0.3f
)
globalAuraMode
.
DiffuseDecay
=
false
;
_VA
.
SetRenderingModuleMuted
(
"MyBinauralArtificialReverb"
,
true
)
;
else
globalAuraMode
.
DiffuseDecay
=
true
;
_VA
.
SetRenderingModuleMuted
(
"MyBinauralArtificialReverb"
,
false
)
;
shadowReverbTime
=
actReverbTime
;
...
...
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