com.amanotes.gdk 0.2.65-3 → 0.2.65-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/Runtime/AmaGDK.cs CHANGED
@@ -17,7 +17,7 @@ namespace Amanotes.Core
17
17
  {
18
18
  public partial class AmaGDK : MonoBehaviour
19
19
  {
20
- public const string VERSION = "0.2.65-3";
20
+ public const string VERSION = "0.2.65-4";
21
21
 
22
22
  internal static Status _status = Status.None;
23
23
  private static ConfigAsset _config = null;
@@ -135,7 +135,7 @@ public class AudioDeviceDetector
135
135
 
136
136
  @Override
137
137
  public void onRouteSelected(MediaRouter router, int type, MediaRouter.RouteInfo info) {
138
- super.onRouteRemoved(router, info);
138
+ super.onRouteSelected(router, type, info);
139
139
  //sent empty string to update current
140
140
  UnityPlayer.UnitySendMessage("AmaGDK", "OnAudioRouteChanged", "");
141
141
  currentRoute = info;
@@ -155,7 +155,11 @@ namespace Amanotes.Core
155
155
 
156
156
  private AudioDeviceType MapDeviceType(string rawType)
157
157
  {
158
- return deviceTypeMapping.GetValueOrDefault(rawType, AudioDeviceType.Unknown);
158
+ if (deviceTypeMapping.TryGetValue(rawType, out var type))
159
+ {
160
+ return type;
161
+ }
162
+ return AudioDeviceType.Unknown;
159
163
  }
160
164
 
161
165
  private static string RemoveSurrogatePairs(string str, string replacementCharacter = "?")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.gdk",
3
- "version": "0.2.65-3",
3
+ "version": "0.2.65-4",
4
4
  "displayName": "AmaGDK",
5
5
  "description": "Amanotes Game Development Kit",
6
6
  "unity": "2019.4",