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 17 java.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\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/WaveFileFormat.java
/* * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.media.sound; import javax.sound.sampled.AudioFileFormat; import javax.sound.sampled.AudioFormat; /** * WAVE file format class. * * @author Jan Borgersen */ final class WaveFileFormat extends StandardFileFormat { /** * Wave format type. */ private final int waveType; //$$fb 2001-07-13: added management of header size in this class //$$fb 2002-04-16: Fix for 4636355: RIFF audio headers could be _more_ spec compliant private static final int STANDARD_HEADER_SIZE = 28; //$$fb 2002-04-16: Fix for 4636355: RIFF audio headers could be _more_ spec compliant /** * fmt_ chunk size in bytes. */ private static final int STANDARD_FMT_CHUNK_SIZE = 16; // magic numbers static final int RIFF_MAGIC = 1380533830; static final int WAVE_MAGIC = 1463899717; static final int FMT_MAGIC = 0x666d7420; // "fmt " static final int DATA_MAGIC = 0x64617461; // "data" // encodings static final int WAVE_FORMAT_UNKNOWN = 0x0000; static final int WAVE_FORMAT_PCM = 0x0001; static final int WAVE_FORMAT_ADPCM = 0x0002; static final int WAVE_FORMAT_IEEE_FLOAT= 0x0003; static final int WAVE_FORMAT_ALAW = 0x0006; static final int WAVE_FORMAT_MULAW = 0x0007; static final int WAVE_FORMAT_OKI_ADPCM = 0x0010; static final int WAVE_FORMAT_DIGISTD = 0x0015; static final int WAVE_FORMAT_DIGIFIX = 0x0016; static final int WAVE_IBM_FORMAT_MULAW = 0x0101; static final int WAVE_IBM_FORMAT_ALAW = 0x0102; static final int WAVE_IBM_FORMAT_ADPCM = 0x0103; static final int WAVE_FORMAT_DVI_ADPCM = 0x0011; static final int WAVE_FORMAT_SX7383 = 0x1C07; static final int WAVE_FORMAT_EXTENSIBLE= 0xFFFE; WaveFileFormat(final AudioFileFormat.Type type, final long byteLength, final AudioFormat format, final long frameLength) { super(type, byteLength, format, frameLength); AudioFormat.Encoding encoding = format.getEncoding(); if( encoding.equals(AudioFormat.Encoding.ALAW) ) { waveType = WAVE_FORMAT_ALAW; } else if( encoding.equals(AudioFormat.Encoding.ULAW) ) { waveType = WAVE_FORMAT_MULAW; } else if( encoding.equals(AudioFormat.Encoding.PCM_SIGNED) || encoding.equals(AudioFormat.Encoding.PCM_UNSIGNED) ) { waveType = WAVE_FORMAT_PCM; } else { waveType = WAVE_FORMAT_UNKNOWN; } } int getWaveType() { return waveType; } int getHeaderSize() { return getHeaderSize(getWaveType()); } static int getHeaderSize(int waveType) { //$$fb 2002-04-16: Fix for 4636355: RIFF audio headers could be _more_ spec compliant // use dynamic format chunk size return STANDARD_HEADER_SIZE + getFmtChunkSize(waveType); } static int getFmtChunkSize(int waveType) { //$$fb 2002-04-16: Fix for 4636355: RIFF audio headers could be _more_ spec compliant // add 2 bytes for "codec specific data length" for non-PCM codecs int result = STANDARD_FMT_CHUNK_SIZE; if (waveType != WAVE_FORMAT_PCM) { result += 2; // WORD for "codec specific data length" } return result; } }
⏎ com/sun/media/sound/WaveFileFormat.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 33982👍, 0💬
Popular Posts:
JDK 8 tools.jar is the JAR file for JDK 8 tools. It contains Java classes to support different JDK t...
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.6.1-src.zip...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...