Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #854 from janholo/master
Fixed UAudioManager Editor Bug and added Test Scene for UAudioManager
- Loading branch information
Showing
17 changed files
with
905 additions
and
272 deletions.
There are no files selected for viewing
573 changes: 573 additions & 0 deletions
573
Assets/HoloToolkit-Tests/SpatialSound/Scenes/UAudioManagerTest.unity
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Assets/HoloToolkit-Tests/SpatialSound/Scenes/UAudioManagerTest.unity.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
Assets/HoloToolkit-Tests/SpatialSound/Scripts/UAudioManagerTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using System.Collections; | ||
using UnityEngine; | ||
|
||
namespace HoloToolkit.Unity.Tests | ||
{ | ||
public class UAudioManagerTest : MonoBehaviour | ||
{ | ||
private void Start() | ||
{ | ||
StartCoroutine(ContinouslyPlaySounds()); | ||
} | ||
|
||
private IEnumerator ContinouslyPlaySounds() | ||
{ | ||
while (true) | ||
{ | ||
UAudioManager.Instance.PlayEvent("Laser"); | ||
|
||
yield return new WaitForSeconds(1.0f); | ||
|
||
UAudioManager.Instance.PlayEvent("Vocals"); | ||
|
||
yield return new WaitForSeconds(10.0f); | ||
} | ||
} | ||
|
||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Assets/HoloToolkit-Tests/SpatialSound/Scripts/UAudioManagerTest.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.