forked from microsoft/MixedRealityToolkit-Unity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIAudioInfluencer.cs
More file actions
29 lines (26 loc) · 1.14 KB
/
IAudioInfluencer.cs
File metadata and controls
29 lines (26 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using UnityEngine;
namespace HoloToolkit.Unity
{
/// <summary>
/// Interface that is implemented by any class that wishes to influence how an audio source sounds.
/// </summary>
public interface IAudioInfluencer
{
/// <summary>
/// Applies an audio effect.
/// </summary>
/// <param name="emitter">The GameObject on which the effect is to be applied.</param>
/// <param name="audioSource">The AudioSource that will be impacted by the effect.</param>
void ApplyEffect(GameObject emitter,
AudioSource audioSource);
/// <summary>
/// Removes a previously applied audio effect.
/// </summary>
/// <param name="emitter">The GameObject from which the effect is to be removed.</param>
/// <param name="audioSource">The AudioSource that will be impacted by the effect.</param>
void RemoveEffect(GameObject emitter,
AudioSource audioSource);
}
}