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()

本頁內容

以 Markdown 檢視

詢問 AI 這一頁的內容