Class SetSyncOffset.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sources.SetSyncOffset.Builder
-
- Enclosing class:
- SetSyncOffset
public static class SetSyncOffset.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 SetSyncOffset.Request
batchMessage()
Batch the message to the OBS Studio instance.int
getOffset()
The desired audio sync offset (in nanoseconds).String
getSource()
Source name.void
sendMessage(Consumer<SetSyncOffset.Response> consumer)
Send the message to the OBS Studio instance.void
setOffset(int offset)
The desired audio sync offset (in nanoseconds).void
setSource(String source)
Source name.-
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
-
getSource
public String getSource()
Source name.
-
setSource
public void setSource(String source)
Source name.
-
getOffset
public int getOffset()
The desired audio sync offset (in nanoseconds).
-
setOffset
public void setOffset(int offset)
The desired audio sync offset (in nanoseconds).
-
sendMessage
public void sendMessage(Consumer<SetSyncOffset.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetSyncOffset.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-