added sources for Slick

Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054
Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
This commit is contained in:
Song Minjae
2016-12-30 23:29:12 +09:00
parent d1f01a203d
commit d3080ffb78
329 changed files with 58400 additions and 7 deletions

View File

@@ -0,0 +1,66 @@
package org.newdawn.slick.openal;
/**
* A null implementation used to provide an object reference when sound
* has failed.
*
* @author kevin
*/
public class NullAudio implements Audio {
/**
* @see org.newdawn.slick.openal.Audio#getBufferID()
*/
public int getBufferID() {
return 0;
}
/**
* @see org.newdawn.slick.openal.Audio#getPosition()
*/
public float getPosition() {
return 0;
}
/**
* @see org.newdawn.slick.openal.Audio#isPlaying()
*/
public boolean isPlaying() {
return false;
}
/**
* @see org.newdawn.slick.openal.Audio#playAsMusic(float, float, boolean)
*/
public int playAsMusic(float pitch, float gain, boolean loop) {
return 0;
}
/**
* @see org.newdawn.slick.openal.Audio#playAsSoundEffect(float, float, boolean)
*/
public int playAsSoundEffect(float pitch, float gain, boolean loop) {
return 0;
}
/**
* @see org.newdawn.slick.openal.Audio#playAsSoundEffect(float, float, boolean, float, float, float)
*/
public int playAsSoundEffect(float pitch, float gain, boolean loop,
float x, float y, float z) {
return 0;
}
/**
* @see org.newdawn.slick.openal.Audio#setPosition(float)
*/
public boolean setPosition(float position) {
return false;
}
/**
* @see org.newdawn.slick.openal.Audio#stop()
*/
public void stop() {
}
}