public void setVolume (float volume) { this.volume = volume; if (audio.noDevice) return; if (sourceID != -1) alSourcef(sourceID, AL_GAIN, volume); }
public void pause () { if (audio.noDevice) return; if (sourceID != -1) alSourcePause(sourceID); isPlaying = false; }
public float getPosition () { if (audio.noDevice) return 0; if (sourceID == -1) return 0; return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET); }
public void setVolume (float volume) { this.volume = volume; if (audio.noDevice) return; if (sourceID != -1) alSourcef(sourceID, AL_GAIN, volume); }
public void pause () { if (audio.noDevice) return; if (sourceID != -1) alSourcePause(sourceID); isPlaying = false; }
public float getPosition () { if (audio.noDevice) return 0; if (sourceID == -1) return 0; return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET); }
public void setVolume (float volume) { this.volume = volume; if (audio.noDevice) return; if (sourceID != -1) alSourcef(sourceID, AL_GAIN, volume); }
public void pause () { if (audio.noDevice) return; if (sourceID != -1) alSourcePause(sourceID); isPlaying = false; }
public float getPosition () { if (audio.noDevice) return 0; if (sourceID == -1) return 0; return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET); }
public void setVolume (float volume) { this.volume = volume; if (audio.noDevice) return; if (sourceID != -1) alSourcef(sourceID, AL_GAIN, volume); }
public void pause () { if (audio.noDevice) return; if (sourceID != -1) alSourcePause(sourceID); isPlaying = false; }
public float getPosition () { if (audio.noDevice) return 0; if (sourceID == -1) return 0; return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET); }
public void setVolume (float volume) { this.volume = volume; if (sourceID != -1) alSourcef(sourceID, AL_GAIN, volume); }
public float getPosition () { if (sourceID == -1) return 0; return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET); }
public void setVolume (float volume) { this.volume = volume; if (sourceID != -1) alSourcef(sourceID, AL_GAIN, volume); }
public float getPosition () { if (sourceID == -1) return 0; return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET); }
public void setVolume (float volume) { this.volume = volume; if (sourceID != -1) alSourcef(sourceID, AL_GAIN, volume); }
public float getPosition () { if (sourceID == -1) return 0; return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET); }
public void setVolume (float volume) { this.volume = volume; if (sourceID != -1) alSourcef(sourceID, AL_GAIN, volume); }
public float getPosition () { if (sourceID == -1) return 0; return renderedSeconds + alGetSourcef(sourceID, AL11.AL_SEC_OFFSET); }