streamIds.add(streamId);\r
return streamId;\r
}\r
+\r
+ @Override\r
+ public void setPriority (long soundId, int priority) {\r
+ soundPool.setPriority((int)soundId, priority);\r
+ }\r
}\r
players[(int)soundId].set_Pan(pan);\r
players[(int)soundId].set_Volume(volume);\r
}
+ }\r
+\r
+ @Override\r
+ public void setPriority (long soundId, int priority) {\r
+ // FIXME\r
}
}
\ No newline at end of file
public long loop (float volume, float pitch, float pan) {\r
return loop(volume);\r
}\r
+\r
+ @Override\r
+ public void setPriority (long soundId, int priority) {\r
+ // FIXME\r
+ }\r
}\r
public float duration () {\r
return duration;\r
}\r
+\r
+ @Override\r
+ public void setPriority (long soundId, int priority) {\r
+ // TODO Auto-generated method stub\r
+ }\r
}\r
* @param pan panning in the range -1 (full right) to 1 (full left). 0 is center position.\r
* @param volume the volume in the range [0,1]. */\r
public void setPan (long soundId, float pan, float volume);\r
+ \r
+ /**\r
+ * Sets the priority of a sound currently being played back. Higher priority sounds will be considered last\r
+ * if the maximum number of concurrently playing sounds is exceeded. This is only a \r
+ * hint and might not be honored by a backend implementation.\r
+ * @param soundId the sound id as returned by {@link #play()} or {@link #loop()} and their overloaded equivalents.\r
+ * @param priority the priority (0 == lowest)\r
+ */\r
+ public void setPriority(long soundId, int priority);\r
}\r
\r
GdxTest test = new BulletTest();\r
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\r
- config.width = 640;\r
- config.height = 640;\r
+ config.width = 800;\r
+ config.height = 600;\r
config.useGL20 = test.needsGL20();\r
config.vSyncEnabled = true;\r
config.resizable = true;\r
+ config.fullscreen = true;\r
new LwjglApplication(test, config);\r
}\r
}\r