| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final AL | |
| private static final String | |
| private volatile int | |
| private int[] | |
| private static final ALC | |
| private static final String | |
| private int | |
| private static final ALExt | |
| private int | |
| private Ringbuffer | |
| private Ringbuffer | |
| private int | |
| private int[] | |
| private AudioSink. | |
| private ALCcontext | |
| private static final boolean | |
| private ALCdevice | |
| private String | |
| private volatile int | |
| private int | |
| private int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final RecursiveLock | |
| private volatile int | |
| private volatile boolean | |
| private float | playSpeed
Playback speed, range [0.5 - 2.0], default 1.0. |
| private AudioSink. | |
| private static final boolean | |
| private float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private void | |
| private static int[] | |
| private final int | |
| private final int | |
| private final void | |
| public final void | destroy()
Implements com. |
| private void | |
| private final void | |
| public final AudioSink. | enqueueData(final int pts, final ByteBuffer bytes, final int byteCount)
Implements com. byteCount bytes of the remaining bytes of the given NIO ByteBuffer to this sink.
|
| public final void | flush()
Implements com. pause().
|
| public final AudioSink. | getChosenFormat()
Implements com. AudioFormat as chosen by init(AudioFormat, float, int, int, int),
i.e. it shall match the requestedFormat.
|
| public final int | |
| public final int | getFrameCount()
Implements com. init(AudioFormat, float, int, int, int).
|
| public final int | getFreeFrameCount()
Implements com. |
| public final int | getMaxSupportedChannels()
Implements com. |
| public final String | |
| public final float | getPlaySpeed()
Implements com. |
| public final AudioSink. | getPreferredFormat()
Implements com. AudioFormat by this sink.
|
| public final int | getPTS()
Implements com. |
| public final int | getQueuedByteCount()
Implements com. |
| public final int | getQueuedFrameCount()
Implements com. |
| public final int | getQueuedTime()
Implements com. |
| private final int | |
| private static final String | |
| public final float | |
| private boolean | growBuffers()
private static <t> T[] concat(T[] first, T[] second) { final T[] result = Arrays.copyOf(first, first.length + second.length); System.arraycopy(second, 0, result, first.length, second.length); return result; } |
| public final boolean | init(final AudioSink.
the requested requestedFormat,AudioFormat.average or fixed frame duration in milliseconds
helping a caching frameDuration, final int AudioFrame based implementation to determine the frame count in the queue.
See DefaultFrameDuration.initial time in milliseconds to queue in this sink, see initialQueueSize, final int DefaultInitialQueueSize.time in milliseconds to grow queue if full, see queueGrowAmount, final int DefaultQueueGrowAmount.maximum time in milliseconds the queue can hold (and grow), see queueLimit)DefaultQueueLimitWithVideo and DefaultQueueLimitAudioOnly.Implements com. |
| public final boolean | isInitialized()
Implements com. initialized state of this instance.
|
| public final boolean | isPlaying()
Implements com. play() has been requested and the sink is still playing,
otherwise false.
|
| private final boolean | |
| public final boolean | isSupported(final AudioSink.
Implements com. |
| private final void | |
| public final void | pause()
Implements com. |
| private final void | |
| public final void | play()
Implements com. enqueueData(AudioFrame) from current internal position.
|
| private final void | |
| private final int | |
| public final boolean | setPlaySpeed(float rate)
Implements com. |
| public final boolean | setVolume(float v)
Implements com. |
| private final String | |
| private final void | |
| private static final String | |
| public final String | |
| private final void |
| al | back to summary |
|---|---|
| private static final AL al | |
| AL_SOFT_buffer_samples | back to summary |
|---|---|
| private static final String AL_SOFT_buffer_samples | |
| alBufferBytesQueued | back to summary |
|---|---|
| private volatile int alBufferBytesQueued | |
| alBufferNames | back to summary |
|---|---|
| private int[] alBufferNames | |
| alc | back to summary |
|---|---|
| private static final ALC alc | |
| ALC_EXT_thread_local_context | back to summary |
|---|---|
| private static final String ALC_EXT_thread_local_context | |
| alChannelLayout | back to summary |
|---|---|
| private int alChannelLayout | |
| alExt | back to summary |
|---|---|
| private static final ALExt alExt | |
| alFormat | back to summary |
|---|---|
| private int alFormat | |
| alFramesAvail | back to summary |
|---|---|
| private Ringbuffer<ALAudioSink. | |
| alFramesPlaying | back to summary |
|---|---|
| private Ringbuffer<ALAudioSink. | |
| alSampleType | back to summary |
|---|---|
| private int alSampleType | |
| alSource | back to summary |
|---|---|
| private int[] alSource | |
| chosenFormat | back to summary |
|---|---|
| private AudioSink. | |
| context | back to summary |
|---|---|
| private ALCcontext context | |
| DEBUG_TRACE | back to summary |
|---|---|
| private static final boolean DEBUG_TRACE | |
| device | back to summary |
|---|---|
| private ALCdevice device | |
| deviceSpecifier | back to summary |
|---|---|
| private String deviceSpecifier | |
| enqueuedFrameCount | back to summary |
|---|---|
| private volatile int enqueuedFrameCount | |
| frameGrowAmount | back to summary |
|---|---|
| private int frameGrowAmount | |
| frameLimit | back to summary |
|---|---|
| private int frameLimit | |
| hasALC_thread_local_context | back to summary |
|---|---|
| private boolean hasALC_thread_local_context | |
| hasSOFTBufferSamples | back to summary |
|---|---|
| private boolean hasSOFTBufferSamples | |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| lock | back to summary |
|---|---|
| private final RecursiveLock lock | |
| playingPTS | back to summary |
|---|---|
| private volatile int playingPTS | |
| playRequested | back to summary |
|---|---|
| private volatile boolean playRequested | |
| playSpeed | back to summary |
|---|---|
| private float playSpeed Playback speed, range [0.5 - 2.0], default 1.0. | |
| preferredAudioFormat | back to summary |
|---|---|
| private AudioSink. | |
| staticAvailable | back to summary |
|---|---|
| private static final boolean staticAvailable | |
| volume | back to summary |
|---|---|
| private float volume | |
| ALAudioSink | back to summary |
|---|---|
| public ALAudioSink() | |
| checkALError | back to summary |
|---|---|
| private boolean checkALError(final String prefix) | |
| clearPreALError | back to summary |
|---|---|
| private void clearPreALError(final String prefix) | |
| concat | back to summary |
|---|---|
| private static int[] concat(final int[] first, final int[] second) | |
| dequeueBuffer | back to summary |
|---|---|
| private final int dequeueBuffer(final boolean wait, final boolean ignoreBufferInconsistency) | |
| dequeueBuffer | back to summary |
|---|---|
| private final int dequeueBuffer(final boolean wait, final int inPTS, final int inDuration) | |
| dequeueForceAll | back to summary |
|---|---|
| private final void dequeueForceAll() | |
| destroy | back to summary |
|---|---|
| public final void destroy() Implements com. Doc from com. Destroys this instance, i.e. closes all streams and devices allocated.
| |
| destroyBuffers | back to summary |
|---|---|
| private void destroyBuffers() | |
| destroyContext | back to summary |
|---|---|
| private final void destroyContext() | |
| enqueueData | back to summary |
|---|---|
| public final AudioSink. Implements com. Doc from com. Enqueue
The data must comply with the chosen
| |
| flush | back to summary |
|---|---|
| public final void flush() Implements com. Doc from com. Flush all queued buffers, implies
| |
| getChosenFormat | back to summary |
|---|---|
| public final AudioSink. Implements com. Doc from com. Returns the
| |
| getEnqueuedFrameCount | back to summary |
|---|---|
| public final int getEnqueuedFrameCount() Implements com.
| |
| getFrameCount | back to summary |
|---|---|
| public final int getFrameCount() Implements com. Doc from com. Returns the number of allocated buffers as requested by
| |
| getFreeFrameCount | back to summary |
|---|---|
| public final int getFreeFrameCount() Implements com. Doc from com. Returns the current number of frames in the sink available for writing.
| |
| getMaxSupportedChannels | back to summary |
|---|---|
| public final int getMaxSupportedChannels() Implements com. Doc from com. Return the maximum number of supported channels.
| |
| getPerfString | back to summary |
|---|---|
| public final String getPerfString() | |
| getPlaySpeed | back to summary |
|---|---|
| public final float getPlaySpeed() Implements com. Doc from com. Returns the playback speed.
| |
| getPreferredFormat | back to summary |
|---|---|
| public final AudioSink. Implements com. Doc from com. Returns the preferred The preferred format is guaranteed to be supported and shall reflect this sinks most native format, i.e. best performance w/o data conversion.
Known
| |
| getPTS | back to summary |
|---|---|
| public final int getPTS() Implements com. Doc from com. Return the current audio presentation timestamp (PTS) in milliseconds.
| |
| getQueuedByteCount | back to summary |
|---|---|
| public final int getQueuedByteCount() Implements com. Doc from com. Returns the current number of bytes queued for playing.
| |
| getQueuedFrameCount | back to summary |
|---|---|
| public final int getQueuedFrameCount() Implements com. Doc from com. Returns the current number of frames queued for playing.
| |
| getQueuedTime | back to summary |
|---|---|
| public final int getQueuedTime() Implements com. Doc from com. Returns the current queued frame time in milliseconds for playing.
| |
| getSourceState | back to summary |
|---|---|
| private final int getSourceState(final boolean ignoreError) | |
| getThreadName | back to summary |
|---|---|
| private static final String getThreadName() | |
| getVolume | back to summary |
|---|---|
| public final float getVolume() Implements com. Doc from com. Returns the volume.
| |
| growBuffers | back to summary |
|---|---|
| private boolean growBuffers() private static | |
| init | back to summary |
|---|---|
| public final boolean init(final AudioSink. Implements com. Doc from com. Initializes the sink.
Implementation must match the given
Caller shall validate
| |
| isInitialized | back to summary |
|---|---|
| public final boolean isInitialized() Implements com. Doc from com. Returns the
The
| |
| isPlaying | back to summary |
|---|---|
| public final boolean isPlaying() Implements com. Doc from com. Returns true, if
| |
| isPlayingImpl0 | back to summary |
|---|---|
| private final boolean isPlayingImpl0() | |
| isSupported | back to summary |
|---|---|
| public final boolean isSupported(final AudioSink. Implements com. Doc from com. Returns true if the given format is supported by the sink, otherwise false.
| |
| lockContext | back to summary |
|---|---|
| private final void lockContext() | |
| pause | back to summary |
|---|---|
| public final void pause() Implements com. Doc from com. Pause playing buffers while keeping enqueued data incl. it's internal position.
| |
| pauseImpl | back to summary |
|---|---|
| private final void pauseImpl() | |
| play | back to summary |
|---|---|
| public final void play() Implements com. Doc from com. Play buffers queued via
| |
| playImpl | back to summary |
|---|---|
| private final void playImpl() | |
| querySampleRate | back to summary |
|---|---|
| private final int querySampleRate() | |
| setPlaySpeed | back to summary |
|---|---|
| public final boolean setPlaySpeed(float rate) Implements com. Doc from com. Sets the playback speed. To simplify test, play speed is normalized, i.e.
| |
| setVolume | back to summary |
|---|---|
| public final boolean setVolume(float v) Implements com. Doc from com. Sets the volume [0f..1f]. To simplify test, volume is normalized, i.e.
| |
| shortString | back to summary |
|---|---|
| private final String shortString() | |
| stopImpl | back to summary |
|---|---|
| private final void stopImpl(final boolean ignoreError) | |
| toHexString | back to summary |
|---|---|
| private static final String toHexString(final int v) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unlockContext | back to summary |
|---|---|
| private final void unlockContext() | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | |
| public String | toString()
Overrides com. |
| alBuffer | back to summary |
|---|---|
| private final int alBuffer | |
| ALAudioFrame | back to summary |
|---|---|
| pack-priv ALAudioFrame(final int alBuffer) | |
| ALAudioFrame | back to summary |
|---|---|
| public ALAudioFrame(final int alBuffer, final int pts, final int duration, final int dataSize) | |
| getALBuffer | back to summary |
|---|---|
| public final int getALBuffer() Get this frame's OpenAL buffer name | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object.
| |