- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
private void clearChannel(int index) { // make room at this channel if (chanSrcs[index] != null) { AudioSource src = chanSrcs[index]; int sourceId = channels[index]; al.alSourceStop(sourceId); // For streaming sources, this will clear all queued buffers. al.alSourcei(sourceId, AL_BUFFER, 0); if (src.getDryFilter() != null && supportEfx) { // detach filter al.alSourcei(sourceId, EFX.AL_DIRECT_FILTER, EFX.AL_FILTER_NULL); } if (src.isPositional()) { AudioSource pas = (AudioSource) src; if (pas.isReverbEnabled() && supportEfx) { al.alSource3i(sourceId, EFX.AL_AUXILIARY_SEND_FILTER, 0, 0, EFX.AL_FILTER_NULL); } } chanSrcs[index] = null; } }
break; case ReverbFilter: if (!supportEfx || !src.isPositional() || !src.isReverbEnabled()) { return; if (src.isReverbEnabled()) { updateSourceParam(src, AudioParam.ReverbFilter); } else {
al.alSourcei(id, AL_SOURCE_RELATIVE, AL_FALSE); if (src.isReverbEnabled() && supportEfx) { int filter = EFX.AL_FILTER_NULL; if (src.getReverbFilter() != null) {
private void clearChannel(int index) { // make room at this channel if (chanSrcs[index] != null) { AudioSource src = chanSrcs[index]; int sourceId = channels[index]; al.alSourceStop(sourceId); // For streaming sources, this will clear all queued buffers. al.alSourcei(sourceId, AL_BUFFER, 0); if (src.getDryFilter() != null && supportEfx) { // detach filter al.alSourcei(sourceId, EFX.AL_DIRECT_FILTER, EFX.AL_FILTER_NULL); } if (src.isPositional()) { AudioSource pas = (AudioSource) src; if (pas.isReverbEnabled() && supportEfx) { al.alSource3i(sourceId, EFX.AL_AUXILIARY_SEND_FILTER, 0, 0, EFX.AL_FILTER_NULL); } } chanSrcs[index] = null; } }
break; case ReverbFilter: if (!supportEfx || !src.isPositional() || !src.isReverbEnabled()) { return; if (src.isReverbEnabled()) { updateSourceParam(src, AudioParam.ReverbFilter); } else {
al.alSourcei(id, AL_SOURCE_RELATIVE, AL_FALSE); if (src.isReverbEnabled() && supportEfx) { int filter = EFX.AL_FILTER_NULL; if (src.getReverbFilter() != null) {