mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-09 21:31:51 +09:00
Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054 Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
67 lines
1.3 KiB
Java
67 lines
1.3 KiB
Java
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() {
|
|
}
|
|
|
|
}
|