Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/SLICK_HOME/src/org/newdawn/slick/openal/NullAudio.java
1461 views
1
package org.newdawn.slick.openal;
2
3
/**
4
* A null implementation used to provide an object reference when sound
5
* has failed.
6
*
7
* @author kevin
8
*/
9
public class NullAudio implements Audio {
10
/**
11
* @see org.newdawn.slick.openal.Audio#getBufferID()
12
*/
13
public int getBufferID() {
14
return 0;
15
}
16
17
/**
18
* @see org.newdawn.slick.openal.Audio#getPosition()
19
*/
20
public float getPosition() {
21
return 0;
22
}
23
24
/**
25
* @see org.newdawn.slick.openal.Audio#isPlaying()
26
*/
27
public boolean isPlaying() {
28
return false;
29
}
30
31
/**
32
* @see org.newdawn.slick.openal.Audio#playAsMusic(float, float, boolean)
33
*/
34
public int playAsMusic(float pitch, float gain, boolean loop) {
35
return 0;
36
}
37
38
/**
39
* @see org.newdawn.slick.openal.Audio#playAsSoundEffect(float, float, boolean)
40
*/
41
public int playAsSoundEffect(float pitch, float gain, boolean loop) {
42
return 0;
43
}
44
45
/**
46
* @see org.newdawn.slick.openal.Audio#playAsSoundEffect(float, float, boolean, float, float, float)
47
*/
48
public int playAsSoundEffect(float pitch, float gain, boolean loop,
49
float x, float y, float z) {
50
return 0;
51
}
52
53
/**
54
* @see org.newdawn.slick.openal.Audio#setPosition(float)
55
*/
56
public boolean setPosition(float position) {
57
return false;
58
}
59
60
/**
61
* @see org.newdawn.slick.openal.Audio#stop()
62
*/
63
public void stop() {
64
}
65
66
}
67
68