Skip to content

Commit

Permalink
Exception handling for applying 3D position to sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Feb 18, 2019
1 parent 2167077 commit c2f2a1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/STACK/Components/Audio/AudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,14 @@ public SoundEffectInstance PlaySoundEffect(string soundEffect, bool looped = fal
Instance.IsLooped = looped;
if (null != emitter && null != listener)
{
Instance.Apply3D(listener.Listener, emitter.Emitter);
try
{
Instance.Apply3D(listener.Listener, emitter.Emitter);
}
catch (AccessViolationException)
{

}
}


Expand Down

0 comments on commit c2f2a1f

Please sign in to comment.