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, 163479👍, 5💬
Popular Posts:
What is the jaxp\SourceValidator.jav aprovided in the Apache Xerces package? I have Apache Xerces 2....
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
The JSR 105 XML Digital Signature 1.0.1 FCS implementation provides an API and implementation that a...
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...