MicrophoneTapHandle - SocketSVC Docs
SocketSVC Docs

MicrophoneTapHandle

A live microphone subscription.

Generated from source

Interface com.socketsvc.api.MicrophoneTapHandle — generated from MicrophoneTapHandle.java. Edit the Javadoc in the Java source, then run pnpm gen:api.

package com.socketsvc.api;

public interface MicrophoneTapHandle extends AutoCloseable { ... }

A live microphone subscription. Close it to stop receiving audio; closing twice is harmless.

SocketSVC closes these for you when the owner is disabled and when the server stops, so an addon that subscribes for its whole lifetime need not keep the handle. Keep it if you want to stop earlier than that.

Methods

close

void close()

Stops delivery. Idempotent, and safe to call from any thread - including from inside the tap's own callback.

isClosed

boolean isClosed()

On this page

View as Markdown

Ask about this page