You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Assets/HoloToolkit/Input/Tests/Scripts/MicStreamDemo.cs
+12-29Lines changed: 12 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,7 @@
1
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT License. See LICENSE in the project root for license information.
3
3
4
-
usingSystem;
5
-
usingSystem.Collections;
6
-
usingSystem.Collections.Generic;
7
-
usingSystem.Runtime.CompilerServices;
8
-
usingSystem.Runtime.InteropServices;
9
-
usingSystem.Threading;
10
4
usingUnityEngine;
11
-
usingUnityEngine.UI;
12
-
usingUnityEngine.Assertions;
13
-
usingSystem.Text;
14
5
15
6
namespaceHoloToolkit.Unity.InputModule.Tests
16
7
{
@@ -31,7 +22,7 @@ public class MicStreamDemo : MonoBehaviour
31
22
/// if keepAllData==false, you'll always get the newest data no matter how long the program hangs for any reason, but will lose some data if the program does hang
32
23
/// can only be set on initialization
33
24
/// </summary>
34
-
publicboolKeepAllData=false;
25
+
publicboolKeepAllData;
35
26
36
27
/// <summary>
37
28
/// Should the mic stream start automatically when this component is enabled?
@@ -51,7 +42,7 @@ public class MicStreamDemo : MonoBehaviour
51
42
/// <summary>
52
43
/// Records estimation of volume from the microphone to affect other elements of the game object
53
44
/// </summary>
54
-
privatefloataverageAmplitude=0;
45
+
privatefloataverageAmplitude;
55
46
56
47
/// <summary>
57
48
/// how small can our object be in this demo?
@@ -64,8 +55,9 @@ private void OnAudioFilterRead(float[] buffer, int numChannels)
0 commit comments