use of com.badlogic.gdx.backends.iosrobovm.objectal.OALAudioTrack in project libgdx by libgdx.
the class IOSAudio method newMusic.
@Override
public Music newMusic(FileHandle fileHandle) {
String path = fileHandle.file().getPath().replace('\\', '/');
OALAudioTrack track = OALAudioTrack.create();
if (track != null) {
if (track.preloadFile(path)) {
return new IOSMusic(track);
}
}
throw new GdxRuntimeException("Error opening music file at " + path);
}
Aggregations