forked from soiaf/Java-Apple-Lossless-decoder
-
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.
- Loading branch information
Showing
5 changed files
with
68 additions
and
72 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,16 +1,14 @@ | ||
[![Release](https://jitpack.io/v/umjammer/vavi-sound-alac.svg)](https://jitpack.io/#umjammer/vavi-sound-alac) | ||
[![Java CI](https://github.com/umjammer/vavi-sound-alac/actions/workflows/maven.yml/badge.svg)](https://github.com/umjammer/vavi-sound-alac/actions/workflows/maven.yml) | ||
[![CodeQL](https://github.com/umjammer/vavi-sound-alac/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/umjammer/vavi-sound-alac/actions/workflows/codeql-analysis.yml) | ||
![Java](https://img.shields.io/badge/Java-8-b07219) | ||
![Java](https://img.shields.io/badge/Java-17-b07219) | ||
[![Parent](https://img.shields.io/badge/Parent-vavi--sound--sandbox-pink)](https://github.com/umjammer/vavi-sound-sandbox) | ||
|
||
# vavi-sound-alac | ||
|
||
<img src="https://user-images.githubusercontent.com/493908/194699473-aaee645a-d178-4d9f-b220-9de335bf4c62.png" width="320" alt="ALAC logo"/> | ||
<sub>© <a href="https://alac.macosforge.org">Apple</a></sub> | ||
<img src="https://user-images.githubusercontent.com/493908/194699473-aaee645a-d178-4d9f-b220-9de335bf4c62.png" width="320" alt="ALAC logo"/><sub>© <a href="https://alac.macosforge.org">Apple</a></sub> | ||
|
||
|
||
Java Implementation of Apple Lossless Decoder | ||
Pure Java Apple Lossless decoder (Java Sound SPI) | ||
|
||
it works as `javax.sound.sampled.spi`</br> | ||
this project is a fork of [soiaf/Java-Apple-Lossless-decoder](https://github.com/soiaf/Java-Apple-Lossless-decoder) | ||
|
@@ -30,47 +28,8 @@ https://jitpack.io/#umjammer/vavi-sound-alac | |
|
||
## TODO | ||
|
||
* play clip w/o format conversion | ||
* play clip w/o format conversion (possible?) | ||
|
||
--- | ||
|
||
## Original | ||
|
||
Copyright (c) 2011-2014 Peter McQuillan</br> | ||
All Rights Reserved.</br> | ||
Distributed under the BSD Software License (see [license.txt](license.txt))</br> | ||
|
||
This package contains a Java implementation of an Apple Lossless decoder. | ||
It is ported from v0.2.0 of the Apple Lossless decoder written by David Hammerton. | ||
This code supports both 16-bit and 24-bit Apple Lossless files. | ||
|
||
It is packaged with a demo command-line program that accepts a | ||
Apple Lossless audio file as input and output a RIFF wav file. | ||
|
||
The Java source code files can be compiled to class files very simply by going | ||
to the directory where you have downloaded the .java files and running | ||
|
||
`javac *.java` | ||
|
||
To run the demo program, use the following command | ||
|
||
`java DecoderDemo <input.m4a> <output.wav>` | ||
|
||
where input.m4a is the name of the Apple Lossless file you wish to decode to a WAV file. | ||
|
||
This code is ported from v0.2.0 of the Apple Lossless decoder written by David Hammerton. | ||
However there are also some extra changes, for example: | ||
|
||
* The original code to read the hdlr atom was capable of generating a minus value seek | ||
after reading strlen - this causes problems if there is poor or non-existent seeking | ||
support | ||
* The stream handling code is now written so that it keeps track of where in the input | ||
stream it is - this is needed for handling the case where the mdat atom comes before the | ||
moov atom (and you have poor/non-existent seeking support) | ||
* The stsz atom handling code assumed variable sample sizes, it now also handles fixed | ||
sample sizes. | ||
|
||
|
||
Thanks to Denis Tulskiy for the contributions he made to the code. | ||
|
||
Please direct any questions or comments to [email protected] | ||
[Original](src/main/java/com/beatofthedrum/alacdecoder/readme.md) |
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,40 @@ | ||
# Java Apple Lossless Decoder | ||
|
||
Copyright (c) 2011-2014 Peter McQuillan</br> | ||
All Rights Reserved.</br> | ||
Distributed under the BSD Software License (see [license.txt](../../../../../../license.txt))</br> | ||
|
||
This package contains a Java implementation of an Apple Lossless decoder. | ||
It is ported from v0.2.0 of the Apple Lossless decoder written by David Hammerton. | ||
This code supports both 16-bit and 24-bit Apple Lossless files. | ||
|
||
It is packaged with a demo command-line program that accepts an | ||
Apple Lossless audio file as input and output a RIFF wav file. | ||
|
||
The Java source code files can be compiled to class files very simply by going | ||
to the directory where you have downloaded the .java files and running | ||
|
||
`javac *.java` | ||
|
||
To run the demo program, use the following command | ||
|
||
`java DecoderDemo <input.m4a> <output.wav>` | ||
|
||
where input.m4a is the name of the Apple Lossless file you wish to decode to a WAV file. | ||
|
||
This code is ported from v0.2.0 of the Apple Lossless decoder written by David Hammerton. | ||
However there are also some extra changes, for example: | ||
|
||
* The original code to read the hdlr atom was capable of generating a minus value seek | ||
after reading strlen - this causes problems if there is poor or non-existent seeking | ||
support | ||
* The stream handling code is now written so that it keeps track of where in the input | ||
stream it is - this is needed for handling the case where the mdat atom comes before the | ||
moov atom (and you have poor/non-existent seeking support) | ||
* The stsz atom handling code assumed variable sample sizes, it now also handles fixed | ||
sample sizes. | ||
|
||
|
||
Thanks to Denis Tulskiy for the contributions he made to the code. | ||
|
||
Please direct any questions or comments to [email protected] |