@Environment(value=CLIENT) public class Channel extends Object
Modifier and Type | Class and Description |
---|---|
class |
Channel.SourceManager |
Modifier and Type | Field and Description |
---|---|
private Executor |
executor |
private SoundEngine |
soundEngine |
private Set<Channel.SourceManager> |
sources |
Constructor and Description |
---|
Channel(SoundEngine soundEngine,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CompletableFuture<Channel.SourceManager> |
createSource(SoundEngine.RunMode mode) |
void |
execute(Consumer<Stream<Source>> consumer) |
void |
tick() |
private final Set<Channel.SourceManager> sources
private final SoundEngine soundEngine
private final Executor executor
public Channel(SoundEngine soundEngine, Executor executor)
public CompletableFuture<Channel.SourceManager> createSource(SoundEngine.RunMode mode)
public void tick()
public void close()