Explorar el Código

Merge pull request #2512 from capdevon/capdevon-AudioNode

AudioNode: add getAudioKey() method
Ryan McDonough hace 2 meses
padre
commit
e99a63bd79
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      jme3-core/src/main/java/com/jme3/audio/AudioNode.java

+ 5 - 1
jme3-core/src/main/java/com/jme3/audio/AudioNode.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2021 jMonkeyEngine
+ * Copyright (c) 2009-2025 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -317,6 +317,10 @@ public class AudioNode extends Node implements AudioSource {
         data = audioData;
         this.audioKey = audioKey;
     }
+    
+    public AudioKey getAudioKey() {
+        return audioKey;
+    }
 
     /**
      * @return The {@link AudioData} set previously with