Class SetAudioTracks.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sources.SetAudioTracks.Builder
-
- Enclosing class:
- SetAudioTracks
public static class SetAudioTracks.Builder extends BaseBuilder
-
-
Constructor Summary
Constructors Constructor Description Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetAudioTracks.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getSourceName()
Source name.int
getTrack()
Audio tracks 1-6.boolean
isActive()
Whether audio track is active or not.void
sendMessage(Consumer<SetAudioTracks.Response> consumer)
Send the message to the OBS Studio instance.void
setActive(boolean active)
Whether audio track is active or not.void
setSourceName(String sourceName)
Source name.void
setTrack(int track)
Audio tracks 1-6.-
Methods inherited from class nl.harm27.obs.websocket.api.base.BaseBuilder
batchMessage, getNewMessageId, sendMessage
-
-
-
-
Constructor Detail
-
Builder
public Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getSourceName
public String getSourceName()
Source name.
-
setSourceName
public void setSourceName(String sourceName)
Source name.
-
getTrack
public int getTrack()
Audio tracks 1-6.
-
setTrack
public void setTrack(int track)
Audio tracks 1-6.
-
isActive
public boolean isActive()
Whether audio track is active or not.
-
setActive
public void setActive(boolean active)
Whether audio track is active or not.
-
sendMessage
public void sendMessage(Consumer<SetAudioTracks.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetAudioTracks.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-