-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from umjammer/1.0.12
1.0.12
- Loading branch information
Showing
206 changed files
with
2,720 additions
and
3,127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
tmp/ | ||
etc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2022 by Naohide Sano, All rights reserved. | ||
* | ||
* Programmed by Naohide Sano | ||
*/ | ||
|
||
package vavi.sound; | ||
|
||
import javax.sound.sampled.DataLine; | ||
import javax.sound.sampled.FloatControl; | ||
|
||
|
||
/** | ||
* SoundUtil. | ||
* | ||
* @author <a href="mailto:[email protected]">Naohide Sano</a> (umjammer) | ||
* @version 0.00 2022/02/13 umjammer initial version <br> | ||
*/ | ||
public final class SoundUtil { | ||
|
||
private SoundUtil() {} | ||
|
||
/** | ||
* @param gain number between 0 and 1 (loudest) | ||
* @before {@link DataLine#open()} | ||
*/ | ||
public static void volume(DataLine line, double gain) { | ||
FloatControl gainControl = (FloatControl) line.getControl(FloatControl.Type.MASTER_GAIN); | ||
float dB = (float) (Math.log10(gain) * 20.0); | ||
gainControl.setValue(dB); | ||
} | ||
} | ||
|
||
/* */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
# vavi.sound.adpcm.ccitt | ||
|
||
<html> | ||
<head> | ||
<link rev="MADE" href="mailto:[email protected]" /> | ||
<link rel="INDEX" href="orverview.html" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta http-equiv="Content-Style-Type" content="text/css" /> | ||
<link rel="stylesheet" type="text/css" href="../../../../vavi.css" /> | ||
<title>vavi.sound.adpcm.ccitt</title> | ||
<!-- | ||
* Copyright (c) 2003 by Naohide Sano, All rights reserved. | ||
* | ||
* Written by Naohide Sano | ||
* | ||
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano) | ||
* | ||
* @version 0.00 030816 nsano initial version | ||
--> | ||
</head> | ||
|
||
<body> | ||
|
||
<p> | ||
CCITT 勧告の音声圧縮フォーマット関連のクラスを提供します。 | ||
</p> | ||
|
||
<ul> | ||
<li>encoder.exe は little endian</li> | ||
</ul> | ||
## Tech-know | ||
|
||
<h2>わかったこと</h2> | ||
* encoder.exe は little endian | ||
* PCM_SIGNED の場合はちゃんと 16Bit Signed な数値を渡してやる | ||
|
||
<ul> | ||
<li>PCM_SIGNED の場合はちゃんと 16Bit Signed な数値を渡してやる</li> | ||
<li></li> | ||
</ul> | ||
## TODO | ||
|
||
<h2>これから実装すること</h2> | ||
* 3, 5bit | ||
|
||
<ul> | ||
<li>3, 5bit</li> | ||
<li></li> | ||
</ul> | ||
## License | ||
|
||
<h2>一次ライセンス</h2> | ||
<pre> | ||
``` | ||
/* | ||
* This source code is a product of Sun Microsystems, Inc. and is provided | ||
* for unrestricted use. Users may copy or modify this source code without | ||
|
@@ -70,8 +39,4 @@ <h2>一次ライセンス</h2> | |
* 2550 Garcia Avenue | ||
* Mountain View, California 94043 | ||
*/ | ||
</pre> | ||
|
||
</body> | ||
|
||
</html> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<html lang="ja"> | ||
# vavi.sound.adpcm.dvi | ||
|
||
<head> | ||
<link rev="MADE" href="mailto:[email protected]" /> | ||
<link rel="INDEX" href="orverview.html" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta http-equiv="Content-Style-Type" content="text/css" /> | ||
<link rel="stylesheet" type="text/css" href="../../../../vavi.css" /> | ||
<title>vavi.sound.adpcm.dvi</title> | ||
<!-- | ||
* Copyright (c) 2003 by Naohide Sano, All rights reserved. | ||
* | ||
* Written by Naohide Sano | ||
* | ||
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano) | ||
* | ||
* @version 0.00 030817 nsano initial version | ||
--> | ||
</head> | ||
|
||
<body> | ||
|
||
<p> | ||
Intel/DVI ADPCM フォーマット関連のクラスを提供します. | ||
</p> | ||
|
||
## Status | ||
|
||
完成 | ||
|
||
<h2>わかったこと</h2> | ||
## Tech-know | ||
|
||
<ul> | ||
<li>audiocafe の Java 移植はバグってる?</li> | ||
</ul> | ||
* audiocafe の Java 移植はバグってる? | ||
|
||
<h2>これから実装すること</h2> | ||
## TODO | ||
|
||
<ul> | ||
<li><del datetime="060124">一括読み込みを止める</del></li> | ||
<li><del>encode</del></li> | ||
</ul> | ||
* ~~datetime="060124 一括読み込みを止める~~ | ||
* ~~encode~~ | ||
|
||
<h2>一次ライセンス</h2> | ||
<pre> | ||
## License | ||
``` | ||
/*********************************************************** | ||
Copyright 1992 by Stichting Mathematisch Centrum, Amsterdam, The | ||
Netherlands. | ||
|
@@ -65,7 +40,4 @@ <h2>一次ライセンス</h2> | |
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
******************************************************************/ | ||
</pre> | ||
</body> | ||
|
||
</html> | ||
``` |
Oops, something went wrong.