AudioPlayer
One-shot playback handle.
這一頁還沒有翻譯,以下顯示英文原文。
Generated from source
Interface com.socketsvc.api.AudioPlayer — generated from AudioPlayer.java. Edit the Javadoc in the Java source, then run pnpm gen:api.
package com.socketsvc.api;
public interface AudioPlayer extends AutoCloseable { ... }One-shot playback handle. EOF, stop, failure and owner disable release the source and encoder.
Methods
isPlaying
boolean isPlaying()completion
CompletionStage<Void> completion()Completes after resources close; exceptional on source/encoder failure. Callbacks may run inline or on the audio worker.
close
void close()