Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/DLSSample.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.io.InputStream;
import java.util.Arrays;
import javax.sound.midi.Soundbank;
import javax.sound.midi.SoundbankResource;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
/**
* This class is used to store the sample data itself.
* A sample is encoded as PCM audio stream
* and in DLS Level 1 files it is always a mono 8/16 bit stream.
* They are stored just like RIFF WAVE files are stored.
* It is stored inside a "wave" List Chunk inside DLS files.
*
* @author Karl Helgason
*/
public final class DLSSample extends SoundbankResource {
byte[] guid = null;
DLSInfo info = new DLSInfo();
DLSSampleOptions sampleoptions;
ModelByteBuffer data;
AudioFormat format;
public DLSSample(Soundbank soundBank) {
super(soundBank, null, AudioInputStream.class);
}
public DLSSample() {
super(null, null, AudioInputStream.class);
}
public DLSInfo getInfo() {
return info;
}
@Override
public Object getData() {
AudioFormat format = getFormat();
InputStream is = data.getInputStream();
if (is == null)
return null;
return new AudioInputStream(is, format, data.capacity());
}
public ModelByteBuffer getDataBuffer() {
return data;
}
public AudioFormat getFormat() {
return format;
}
public void setFormat(AudioFormat format) {
this.format = format;
}
public void setData(ModelByteBuffer data) {
this.data = data;
}
public void setData(byte[] data) {
this.data = new ModelByteBuffer(data);
}
public void setData(byte[] data, int offset, int length) {
this.data = new ModelByteBuffer(data, offset, length);
}
@Override
public String getName() {
return info.name;
}
public void setName(String name) {
info.name = name;
}
public DLSSampleOptions getSampleoptions() {
return sampleoptions;
}
public void setSampleoptions(DLSSampleOptions sampleOptions) {
this.sampleoptions = sampleOptions;
}
@Override
public String toString() {
return "Sample: " + info.name;
}
public byte[] getGuid() {
return guid == null ? null : Arrays.copyOf(guid, guid.length);
}
public void setGuid(byte[] guid) {
this.guid = guid == null ? null : Arrays.copyOf(guid, guid.length);
}
}
⏎ com/sun/media/sound/DLSSample.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, ≈780🔥, 5💬
Popular Posts:
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module. JDK 11 SQL Rowset module ...
Guava is a suite of core and expanded libraries that include utility classes, google's collections, ...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
jTDS JDBC Driver Source Code Files are provided in the source package file, jtds-1.3.1-fyi.zip. You ...
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...