Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/media/sound/SoftAudioBuffer.java
/* * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.media.sound; import java.util.Arrays; import javax.sound.sampled.AudioFormat; /** * This class is used to store audio buffer. * * @author Karl Helgason */ public final class SoftAudioBuffer { private int size; private float[] buffer; private boolean empty = true; private AudioFormat format; private AudioFloatConverter converter; private byte[] converter_buffer; public SoftAudioBuffer(int size, AudioFormat format) { this.size = size; this.format = format; converter = AudioFloatConverter.getConverter(format); } public void swap(SoftAudioBuffer swap) { int bak_size = size; float[] bak_buffer = buffer; boolean bak_empty = empty; AudioFormat bak_format = format; AudioFloatConverter bak_converter = converter; byte[] bak_converter_buffer = converter_buffer; size = swap.size; buffer = swap.buffer; empty = swap.empty; format = swap.format; converter = swap.converter; converter_buffer = swap.converter_buffer; swap.size = bak_size; swap.buffer = bak_buffer; swap.empty = bak_empty; swap.format = bak_format; swap.converter = bak_converter; swap.converter_buffer = bak_converter_buffer; } public AudioFormat getFormat() { return format; } public int getSize() { return size; } public void clear() { if (!empty) { Arrays.fill(buffer, 0); empty = true; } } public boolean isSilent() { return empty; } public float[] array() { empty = false; if (buffer == null) buffer = new float[size]; return buffer; } public void get(byte[] buffer, int channel) { int framesize_pc = (format.getFrameSize() / format.getChannels()); int c_len = size * framesize_pc; if (converter_buffer == null || converter_buffer.length < c_len) converter_buffer = new byte[c_len]; if (format.getChannels() == 1) { converter.toByteArray(array(), size, buffer); } else { converter.toByteArray(array(), size, converter_buffer); if (channel >= format.getChannels()) return; int z_stepover = format.getChannels() * framesize_pc; int k_stepover = framesize_pc; for (int j = 0; j < framesize_pc; j++) { int k = j; int z = channel * framesize_pc + j; for (int i = 0; i < size; i++) { buffer[z] = converter_buffer[k]; z += z_stepover; k += k_stepover; } } } } }
⏎ com/sun/media/sound/SoftAudioBuffer.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, 191267👍, 5💬
Popular Posts:
JDK 11 jdk.xml.dom.jmod is the JMOD file for JDK 11 XML DOM module. JDK 11 XML DOM module compiled c...
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module. JDK 11 Interna...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
How to run "jar" command from JDK tools.jar file? "jar" is the JAR (Java Archive) file management co...
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...