https://github.com/skratchdot/riff-wav-for-java
This EMF based project was created to allow the reading and writing of .wav files in Java. It attempts to read in well-known RIFF chunks, and provide an API for reading/manipulating those chunks.
https://github.com/skratchdot/riff-wav-for-java
Last synced: over 1 year ago
JSON representation
This EMF based project was created to allow the reading and writing of .wav files in Java. It attempts to read in well-known RIFF chunks, and provide an API for reading/manipulating those chunks.
- Host: GitHub
- URL: https://github.com/skratchdot/riff-wav-for-java
- Owner: skratchdot
- Created: 2010-12-19T20:12:41.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-12-15T16:02:50.000Z (over 13 years ago)
- Last Synced: 2025-01-22T08:09:58.894Z (over 1 year ago)
- Language: Java
- Homepage: http://code.google.com/p/riff-wav-for-java/
- Size: 426 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RIFF WAV for Java
==================================
### SUMMARY: ###
This EMF based project was created to allow the reading and writing of .wav files in Java.
It attempts to read in well-known RIFF chunks, and provide an API for reading/manipulating those chunks.
Most of the information about various RIFF chunks were found on The Sonic Spot website
and from links in the Wikipedia article on wave files. (For more info, see the links section).
### USAGE: ###
Loading a wave file (preferred method using EMF):
```java
File file = new File("C:\\my_sample.wav");
RIFFWave riffWave = WavFactory.eINSTANCE.createRIFFWave(file);
```
Loading a wave file (method 2):
```java
File file = new File("C:\\my_sample.wav");
RIFFWave riffWave = new RIFFWaveImpl(file);
```
Saving a wave file:
```java
// riffWave object was created elsewhere
File file = new File("C:\\my_sample.wav");
riffWave.write(file);
```
### Links: ###
- [Javadocs](http://skratchdot.com/projects/riff-wav-for-java/javadocs/)
- [Wikipedia: WAV](http://en.wikipedia.org/wiki/WAV)
- [Wave File Format: The Sonic Spot](http://www.sonicspot.com/guide/wavefiles.html)
- [Wave File Format: MMSP Lab, ECE, McGill University](http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html)
- [Example Wave Files: MMSP Lab, ECE, McGill University](http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/Samples.html)
- [Eclipse Modeling Framework](http://www.eclipse.org/modeling/emf/)