Permalink
Browse files

added method to declare a music with a file handle

  • Loading branch information...
1 parent 6199a8e commit bc62a7a1b180895d3be13c6ac6078a1cb9099970 @acoppes acoppes committed Apr 30, 2012
@@ -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";
@@ -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) {

0 comments on commit bc62a7a

Please sign in to comment.