Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added method to declare a music with a file handle

  • Loading branch information...
commit bc62a7a1b180895d3be13c6ac6078a1cb9099970 1 parent 6199a8e
@acoppes acoppes authored
View
1  commons-gdx-core/src/main/java/com/gemserk/animation4j/timeline/TimelineConfigurator.java
@@ -10,6 +10,7 @@
import com.gemserk.animation4j.gdx.converters.LibgdxConverters;
import com.gemserk.commons.gdx.camera.Camera;
+@SuppressWarnings("rawtypes")
public class TimelineConfigurator {
private static final String OPACITY_SUFFIX = ".opacity";
View
6 commons-gdx-resources/src/main/java/com/gemserk/commons/gdx/resources/LibgdxResourceBuilder.java
@@ -293,7 +293,11 @@ public void sound(String id, FileHandle fileHandle) {
}
public void music(String id, String file) {
- resourceManager.add(id, new MusicDataLoader(internal(file)));
+ music(id, internal(file));
+ }
+
+ public void music(String id, FileHandle fileHandle) {
+ resourceManager.add(id, new MusicDataLoader(fileHandle));
}
public void xmlDocument(String id, final String file) {
Please sign in to comment.
Something went wrong with that request. Please try again.