public class FFAudioInputStream extends AudioInputStream
FFNativePeerInputStream.format, frameLength, framePos, frameSize| Constructor and Description |
|---|
FFAudioInputStream(FFNativePeerInputStream nativePeerInputStream,
AudioFormat format,
long frameLength)
Creates a new
FFAudioInputStream backed by the given native peer. |
| Modifier and Type | Method and Description |
|---|---|
long |
getFrameLength() |
boolean |
isSeekable()
Indicates whether this stream is seekable.
|
void |
seek(long time,
TimeUnit timeUnit)
Positions the stream at the desired timestamp.
|
public FFAudioInputStream(FFNativePeerInputStream nativePeerInputStream, AudioFormat format, long frameLength)
FFAudioInputStream backed by the given native peer.nativePeerInputStream - native peer that reads and decodes audio dataformat - audio format of the decoded PCM dataframeLength - total frame count, or AudioSystem.NOT_SPECIFIEDpublic long getFrameLength()
getFrameLength in class AudioInputStreampublic boolean isSeekable()
public void seek(long time,
TimeUnit timeUnit)
throws UnsupportedOperationException,
IOException
time - timetimeUnit - time unitUnsupportedOperationException - if the operation is not supportedIOException - if something goes wrongCopyright © 2013–2026 Jalulo UG (haftungsbeschränkt). All rights reserved.