com.github.mathiewz.slick.openal.NullAudio Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of modernized-slick Show documentation
Show all versions of modernized-slick Show documentation
The main purpose of this libraryis to modernize and maintain the slick2D library.
The newest version!
package com.github.mathiewz.slick.openal;
/**
* A null implementation used to provide an object reference when sound
* has failed.
*
* @author kevin
*/
public class NullAudio implements Audio {
/**
* @see com.github.mathiewz.slick.openal.Audio#getBufferID()
*/
@Override
public int getBufferID() {
return 0;
}
/**
* @see com.github.mathiewz.slick.openal.Audio#getPosition()
*/
@Override
public float getPosition() {
return 0;
}
/**
* @see com.github.mathiewz.slick.openal.Audio#isPlaying()
*/
@Override
public boolean isPlaying() {
return false;
}
/**
* @see com.github.mathiewz.slick.openal.Audio#playAsMusic(float, float, boolean)
*/
@Override
public int playAsMusic(float pitch, float gain, boolean loop) {
return 0;
}
/**
* @see com.github.mathiewz.slick.openal.Audio#playAsSoundEffect(float, float, boolean)
*/
@Override
public int playAsSoundEffect(float pitch, float gain, boolean loop) {
return 0;
}
/**
* @see com.github.mathiewz.slick.openal.Audio#playAsSoundEffect(float, float, boolean, float, float, float)
*/
@Override
public int playAsSoundEffect(float pitch, float gain, boolean loop, float x, float y, float z) {
return 0;
}
/**
* @see com.github.mathiewz.slick.openal.Audio#setPosition(float)
*/
@Override
public boolean setPosition(float position) {
return false;
}
/**
* @see com.github.mathiewz.slick.openal.Audio#stop()
*/
@Override
public void stop() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy