Java Code Examples for org.lwjgl.openal.AL10#AL_PAUSED
The following examples show how to use
org.lwjgl.openal.AL10#AL_PAUSED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SoundStore.java From opsu-dance with GNU General Public License v3.0 | 5 votes |
/** * Find a free sound source * * @return The index of the free sound source */ private int findFreeSource() { for (int i=1;i<sourceCount-1;i++) { int state = AL10.alGetSourcei(sources.get(i), AL10.AL_SOURCE_STATE); if ((state != AL10.AL_PLAYING) && (state != AL10.AL_PAUSED)) { return i; } } return -1; }
Example 2
Source File: SoundStore.java From opsu-dance with GNU General Public License v3.0 | 5 votes |
/** * Check if the music is currently playing * * @return True if the music is playing */ public boolean isMusicPlaying() { if (!soundWorks) { return false; } int state = AL10.alGetSourcei(sources.get(0), AL10.AL_SOURCE_STATE); return ((state == AL10.AL_PLAYING) || (state == AL10.AL_PAUSED)); }
Example 3
Source File: SoundStore.java From opsu with GNU General Public License v3.0 | 5 votes |
/** * Find a free sound source * * @return The index of the free sound source */ private int findFreeSource() { for (int i=1;i<sourceCount-1;i++) { int state = AL10.alGetSourcei(sources.get(i), AL10.AL_SOURCE_STATE); if ((state != AL10.AL_PLAYING) && (state != AL10.AL_PAUSED)) { return i; } } return -1; }
Example 4
Source File: SoundStore.java From opsu with GNU General Public License v3.0 | 5 votes |
/** * Check if the music is currently playing * * @return True if the music is playing */ public boolean isMusicPlaying() { if (!soundWorks) { return false; } int state = AL10.alGetSourcei(sources.get(0), AL10.AL_SOURCE_STATE); return ((state == AL10.AL_PLAYING) || (state == AL10.AL_PAUSED)); }
Example 5
Source File: SoundStore.java From slick2d-maven with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Find a free sound source * * @return The index of the free sound source */ private int findFreeSource() { for (int i=1;i<sourceCount-1;i++) { int state = AL10.alGetSourcei(sources.get(i), AL10.AL_SOURCE_STATE); if ((state != AL10.AL_PLAYING) && (state != AL10.AL_PAUSED)) { return i; } } return -1; }
Example 6
Source File: SoundStore.java From slick2d-maven with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Check if the music is currently playing * * @return True if the music is playing */ public boolean isMusicPlaying() { if (!soundWorks) { return false; } int state = AL10.alGetSourcei(sources.get(0), AL10.AL_SOURCE_STATE); return ((state == AL10.AL_PLAYING) || (state == AL10.AL_PAUSED)); }