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/SF2Sample.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 javax.sound.midi.Soundbank; import javax.sound.midi.SoundbankResource; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; /** * Soundfont sample storage. * * @author Karl Helgason */ public final class SF2Sample extends SoundbankResource { String name = ""; long startLoop = 0; long endLoop = 0; long sampleRate = 44100; int originalPitch = 60; byte pitchCorrection = 0; int sampleLink = 0; int sampleType = 0; ModelByteBuffer data; ModelByteBuffer data24; public SF2Sample(Soundbank soundBank) { super(soundBank, null, AudioInputStream.class); } public SF2Sample() { super(null, null, AudioInputStream.class); } @Override public Object getData() { AudioFormat format = getFormat(); /* if (sampleFile != null) { FileInputStream fis; try { fis = new FileInputStream(sampleFile); RIFFReader riff = new RIFFReader(fis); if (!riff.getFormat().equals("RIFF")) { throw new RIFFInvalidDataException( "Input stream is not a valid RIFF stream!"); } if (!riff.getType().equals("sfbk")) { throw new RIFFInvalidDataException( "Input stream is not a valid SoundFont!"); } while (riff.hasNextChunk()) { RIFFReader chunk = riff.nextChunk(); if (chunk.getFormat().equals("LIST")) { if (chunk.getType().equals("sdta")) { while(chunk.hasNextChunk()) { RIFFReader chunkchunk = chunk.nextChunk(); if(chunkchunk.getFormat().equals("smpl")) { chunkchunk.skip(sampleOffset); return new AudioInputStream(chunkchunk, format, sampleLen); } } } } } return null; } catch (Exception e) { return new Throwable(e.toString()); } } */ InputStream is = data.getInputStream(); if (is == null) return null; return new AudioInputStream(is, format, data.capacity()); } public ModelByteBuffer getDataBuffer() { return data; } public ModelByteBuffer getData24Buffer() { return data24; } public AudioFormat getFormat() { return new AudioFormat(sampleRate, 16, 1, true, false); } 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); } public void setData24(ModelByteBuffer data24) { this.data24 = data24; } public void setData24(byte[] data24) { this.data24 = new ModelByteBuffer(data24); } public void setData24(byte[] data24, int offset, int length) { this.data24 = new ModelByteBuffer(data24, offset, length); } /* public void setData(File file, int offset, int length) { this.data = null; this.sampleFile = file; this.sampleOffset = offset; this.sampleLen = length; } */ @Override public String getName() { return name; } public void setName(String name) { this.name = name; } public long getEndLoop() { return endLoop; } public void setEndLoop(long endLoop) { this.endLoop = endLoop; } public int getOriginalPitch() { return originalPitch; } public void setOriginalPitch(int originalPitch) { this.originalPitch = originalPitch; } public byte getPitchCorrection() { return pitchCorrection; } public void setPitchCorrection(byte pitchCorrection) { this.pitchCorrection = pitchCorrection; } public int getSampleLink() { return sampleLink; } public void setSampleLink(int sampleLink) { this.sampleLink = sampleLink; } public long getSampleRate() { return sampleRate; } public void setSampleRate(long sampleRate) { this.sampleRate = sampleRate; } public int getSampleType() { return sampleType; } public void setSampleType(int sampleType) { this.sampleType = sampleType; } public long getStartLoop() { return startLoop; } public void setStartLoop(long startLoop) { this.startLoop = startLoop; } @Override public String toString() { return "Sample: " + name; } }
⏎ com/sun/media/sound/SF2Sample.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, 192813👍, 5💬
Popular Posts:
JDK 11 java.sql.jmod is the JMOD file for JDK 11 SQL (Structured Query Language) module. JDK 11 SQL ...
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
How to download and install JDK (Java Development Kit) 8? If you want to write Java applications, yo...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...