Path: blob/master/SLICK_HOME/src/org/newdawn/slick/openal/NullAudio.java
1461 views
package org.newdawn.slick.openal;12/**3* A null implementation used to provide an object reference when sound4* has failed.5*6* @author kevin7*/8public class NullAudio implements Audio {9/**10* @see org.newdawn.slick.openal.Audio#getBufferID()11*/12public int getBufferID() {13return 0;14}1516/**17* @see org.newdawn.slick.openal.Audio#getPosition()18*/19public float getPosition() {20return 0;21}2223/**24* @see org.newdawn.slick.openal.Audio#isPlaying()25*/26public boolean isPlaying() {27return false;28}2930/**31* @see org.newdawn.slick.openal.Audio#playAsMusic(float, float, boolean)32*/33public int playAsMusic(float pitch, float gain, boolean loop) {34return 0;35}3637/**38* @see org.newdawn.slick.openal.Audio#playAsSoundEffect(float, float, boolean)39*/40public int playAsSoundEffect(float pitch, float gain, boolean loop) {41return 0;42}4344/**45* @see org.newdawn.slick.openal.Audio#playAsSoundEffect(float, float, boolean, float, float, float)46*/47public int playAsSoundEffect(float pitch, float gain, boolean loop,48float x, float y, float z) {49return 0;50}5152/**53* @see org.newdawn.slick.openal.Audio#setPosition(float)54*/55public boolean setPosition(float position) {56return false;57}5859/**60* @see org.newdawn.slick.openal.Audio#stop()61*/62public void stop() {63}6465}666768