-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from umjammer/0.0.2
0.0.2
- Loading branch information
Showing
43 changed files
with
632 additions
and
645 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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/tmp/ | ||
/local.properties |
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,2 @@ | ||
jdk: | ||
- openjdk17 |
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 @@ | ||
vavi.test.volume=0.02 |
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 |
---|---|---|
@@ -1,16 +1,38 @@ | ||
[![Release](https://jitpack.io/v/umjammer/vavi-sound-nsf.svg)](https://jitpack.io/#umjammer/vavi-sound-nsf) | ||
[![Java CI with Maven](https://github.com/umjammer/vavi-sound-nsf/actions/workflows/maven.yml/badge.svg)](https://github.com/umjammer/vavi-sound-nsf/actions/workflows/maven.yml) | ||
[![Java CI](https://github.com/umjammer/vavi-sound-nsf/actions/workflows/maven.yml/badge.svg)](https://github.com/umjammer/vavi-sound-nsf/actions/workflows/maven.yml) | ||
[![CodeQL](https://github.com/umjammer/vavi-sound-nsf/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/umjammer/vavi-sound-nsf/actions/workflows/codeql-analysis.yml) | ||
![Java](https://img.shields.io/badge/Java-17-b07219) | ||
|
||
# vavi-sound-nsf | ||
|
||
play nsf as `javax.sound.sampled.spi` | ||
<img src="https://github.com/umjammer/vavi-sound-nsf/assets/493908/f9af5c46-ad4b-4e9b-801c-8ac87cf2b669" width=160 alt="nes logo"/><sub><a href="https://www.nintendo.com/">© Nintendo</a></sub> | ||
|
||
# TODO | ||
[NSF](https://www.nesdev.org/wiki/NSF) Java Sound SPI powered by [nsf](https://github.com/orangelando/nsf) | ||
|
||
* improve decoding speed | ||
## Install | ||
|
||
## Originals | ||
* [maven](https://jitpack.io/#umjammer/vavi-sound-nsf) | ||
|
||
* [nsf](https://github.com/orangelando/nsf) | ||
* [Festalon](https://github.com/ahefner/festalon) | ||
## Usage | ||
|
||
```java | ||
AudioInputStream ais = AudioSystem.getAudioInputStream(Paths.get(nsf).toFile()); | ||
Clip clip = AudioSystem.getClip(); | ||
clip.open(AudioSystem.getAudioInputStream(new AudioFormat(Encoding.PCM_SIGNED, 44100, 16, 1, 2, 44100, false, props), ais)); | ||
clip.loop(Clip.LOOP_CONTINUOUSLY); | ||
``` | ||
|
||
### properties for target `AudioFormat` | ||
|
||
* `track` ... specify track # in the file to play | ||
* `maxPlaySecs` ... specify max play time in \[sec] | ||
|
||
## References | ||
|
||
* [nsf](https://github.com/orangelando/nsf) | ||
* [Festalon](https://github.com/ahefner/festalon) | ||
|
||
## TODO | ||
|
||
* ~~improve decoding speed (i7 imac)~~ | ||
* on m2 ultra mac no problem |
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 |
---|---|---|
|
@@ -263,5 +263,3 @@ public double filter_step(double val) { | |
return 0; | ||
} | ||
} | ||
|
||
/* */ |
Oops, something went wrong.