PcmSource
48 kHz, mono, signed 16-bit PCM.
這一頁還沒有翻譯,以下顯示英文原文。
Generated from source
Interface com.socketsvc.client.api.PcmSource — generated from PcmSource.java. Edit the Javadoc in the Java source, then run pnpm gen:api.
package com.socketsvc.client.api;
public interface PcmSource extends AutoCloseable { ... }48 kHz, mono, signed 16-bit PCM. A convenience source for feeding play
frame by frame (e.g. via PcmSources) - read it on whatever thread you drive playback from,
never the render thread. Fill all 960 samples (20 ms); zero-pad the final partial frame. Return
false at EOF. Reads must finish promptly and respond to interruption.
Methods
readFrame
boolean readFrame(short[] samples) throws Exceptionclose
default void close() throws Exception