Fixed variable shadowing
package arc.audio;
import arc.*;
+import arc.util.*;
import static arc.audio.Soloud.*;
-/** A*/
public class AudioBus extends AudioSource{
- protected long handle;
-
public int id;
public AudioBus(){
@@ -16,6 +14,12 @@ public class AudioBus extends AudioSource{
}
}
+ @Override
+ public void setFilter(int index, @Nullable AudioFilter filter){
+ if(handle == 0) return;
+ sourceFilter(handle, index, filter == null ? 0 : filter.handle);
+ }
+
AudioBus init(){
if(handle != 0) return this;
this.handle = busNew();
