Skip to content

Commit

Permalink
Merge pull request #359 from asus4/disable-mic-for-webgl
Browse files Browse the repository at this point in the history
Remove microphone buffer class from WebGL build
  • Loading branch information
asus4 authored May 10, 2024
2 parents b32c797 + da147ee commit 4398a82
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if !UNITY_WEBGL // Microphone API is not supported in WebGL

using System;
using System.Buffers;
using System.Collections;
Expand Down Expand Up @@ -162,3 +164,4 @@ private void GetLoopedSamples(int position, float[] samples)
#endif
}
}
#endif // !UNITY_WEBGL

0 comments on commit 4398a82

Please sign in to comment.