-
Notifications
You must be signed in to change notification settings - Fork 4
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
18 changed files
with
136 additions
and
21 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,3 +1,3 @@ | ||
artifacts/ | ||
stage/ | ||
|
||
references/ |
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 was deleted.
Oops, something went wrong.
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,31 @@ | ||
#! /bin/sh | ||
|
||
rm -rf artifacts | ||
rm -rf stage | ||
|
||
mkdir artifacts | ||
mkdir stage | ||
|
||
cd artifacts | ||
|
||
wget https://jaist.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.6.tar.gz | ||
wget https://jaist.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-2.0.1.tar.gz | ||
wget https://github.com/nu774/fdkaac/archive/1.0.0.tar.gz | ||
|
||
mv 1.0.0.tar.gz fdkaac-1.0.0.tar.gz | ||
|
||
cd .. | ||
|
||
rm -rf references | ||
mkdir references | ||
|
||
test-materials/ffmpeg.exe -i test-materials/battleThemeA.mp3 references/BattleThemeA.wav > /dev/null 2>&1 | ||
|
||
test-materials/ffmpeg.exe -i test-materials/BattleThemeA_p2_44_128.aac -f s16le references/battleThemeA_p2_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i test-materials/BattleThemeA_p5_44_128.aac -f s16le references/battleThemeA_p5_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i test-materials/BattleThemeA_p23_44_128.aac -f s16le references/battleThemeA_p23_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i test-materials/BattleThemeA_p29_44_128.aac -f s16le references/battleThemeA_p29_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i test-materials/BattleThemeA_p39_44_128.aac -f s16le references/battleThemeA_p39_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i test-materials/BattleThemeA_p2_44_256.aac -f s16le references/battleThemeA_p2_44_256.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i test-materials/BattleThemeA_p2_44_m1.aac -f s16le references/battleThemeA_p2_44_m1.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i test-materials/BattleThemeA_p2_44_m5.aac -f s16le references/battleThemeA_p2_44_m5.pcm > /dev/null 2>&1 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,7 @@ | ||
BattleThemeA.wav imported from: | ||
|
||
* [opengameart.org](https://opengameart.org/content/battle-theme-a) | ||
* License: CC0 | ||
|
||
It was converted from mp3 format to wav format. | ||
And spreaded mp4 formats by optimization disabled (64bit, -O0) fdkaac.exe. |
Binary file not shown.
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,14 @@ | ||
#! /bin/sh | ||
|
||
./ffmpeg.exe -i BattleThemeA.mp3 BattleThemeA.wav > /dev/null 2>&1 | ||
|
||
../artifacts/x86_64-w64-mingw32/fdkaac.exe -p 2 -b 128 -o BattleThemeA_p2_44_128.aac BattleThemeA.wav | ||
../artifacts/x86_64-w64-mingw32/fdkaac.exe -p 5 -b 128 -o BattleThemeA_p5_44_128.aac BattleThemeA.wav | ||
../artifacts/x86_64-w64-mingw32/fdkaac.exe -p 23 -b 128 -o BattleThemeA_p23_44_128.aac BattleThemeA.wav | ||
../artifacts/x86_64-w64-mingw32/fdkaac.exe -p 29 -b 128 -o BattleThemeA_p29_44_128.aac BattleThemeA.wav | ||
../artifacts/x86_64-w64-mingw32/fdkaac.exe -p 39 -b 128 -o BattleThemeA_p39_44_128.aac BattleThemeA.wav | ||
../artifacts/x86_64-w64-mingw32/fdkaac.exe -p 2 -b 256 -o BattleThemeA_p2_44_256.aac BattleThemeA.wav | ||
../artifacts/x86_64-w64-mingw32/fdkaac.exe -p 2 -m 1 -o BattleThemeA_p2_44_m1.aac BattleThemeA.wav | ||
../artifacts/x86_64-w64-mingw32/fdkaac.exe -p 2 -m 5 -o BattleThemeA_p2_44_m5.aac BattleThemeA.wav | ||
|
||
rm BattleThemeA.wav |
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,39 @@ | ||
#! /bin/sh | ||
|
||
DEST=artifacts/$MINGW_CHOST"_test" | ||
|
||
rm -rf $DEST | ||
mkdir $DEST | ||
|
||
# Execute using built binary. | ||
|
||
artifacts/$MINGW_CHOST/fdkaac.exe -p 2 -b 128 -o $DEST/BattleThemeA_p2_44_128.aac references/BattleThemeA.wav | ||
artifacts/$MINGW_CHOST/fdkaac.exe -p 5 -b 128 -o $DEST/BattleThemeA_p5_44_128.aac references/BattleThemeA.wav | ||
artifacts/$MINGW_CHOST/fdkaac.exe -p 23 -b 128 -o $DEST/BattleThemeA_p23_44_128.aac references/BattleThemeA.wav | ||
artifacts/$MINGW_CHOST/fdkaac.exe -p 29 -b 128 -o $DEST/BattleThemeA_p29_44_128.aac references/BattleThemeA.wav | ||
artifacts/$MINGW_CHOST/fdkaac.exe -p 39 -b 128 -o $DEST/BattleThemeA_p39_44_128.aac references/BattleThemeA.wav | ||
artifacts/$MINGW_CHOST/fdkaac.exe -p 2 -b 256 -o $DEST/BattleThemeA_p2_44_256.aac references/BattleThemeA.wav | ||
artifacts/$MINGW_CHOST/fdkaac.exe -p 2 -m 1 -o $DEST/BattleThemeA_p2_44_m1.aac references/BattleThemeA.wav | ||
artifacts/$MINGW_CHOST/fdkaac.exe -p 2 -m 5 -o $DEST/BattleThemeA_p2_44_m5.aac references/BattleThemeA.wav | ||
|
||
# Make raw pcm from encoded files. | ||
|
||
test-materials/ffmpeg.exe -i $DEST/BattleThemeA_p2_44_128.aac -f s16le $DEST/battleThemeA_p2_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i $DEST/BattleThemeA_p5_44_128.aac -f s16le $DEST/BattleThemeA_p5_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i $DEST/BattleThemeA_p23_44_128.aac -f s16le $DEST/BattleThemeA_p23_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i $DEST/BattleThemeA_p29_44_128.aac -f s16le $DEST/BattleThemeA_p29_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i $DEST/BattleThemeA_p39_44_128.aac -f s16le $DEST/BattleThemeA_p39_44_128.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i $DEST/BattleThemeA_p2_44_256.aac -f s16le $DEST/BattleThemeA_p2_44_256.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i $DEST/BattleThemeA_p2_44_m1.aac -f s16le $DEST/BattleThemeA_p2_44_m1.pcm > /dev/null 2>&1 | ||
test-materials/ffmpeg.exe -i $DEST/BattleThemeA_p2_44_m5.aac -f s16le $DEST/BattleThemeA_p2_44_m5.pcm > /dev/null 2>&1 | ||
|
||
# Compare raw pcm files. | ||
|
||
cmp references/battleThemeA_p2_44_128.pcm $DEST/battleThemeA_p2_44_128.pcm | ||
cmp references/BattleThemeA_p5_44_128.pcm $DEST/BattleThemeA_p5_44_128.pcm | ||
cmp references/BattleThemeA_p23_44_128.pcm $DEST/BattleThemeA_p23_44_128.pcm | ||
cmp references/BattleThemeA_p29_44_128.pcm $DEST/BattleThemeA_p29_44_128.pcm | ||
cmp references/BattleThemeA_p39_44_128.pcm $DEST/BattleThemeA_p39_44_128.pcm | ||
cmp references/BattleThemeA_p2_44_256.pcm $DEST/BattleThemeA_p2_44_256.pcm | ||
cmp references/BattleThemeA_p2_44_m1.pcm $DEST/BattleThemeA_p2_44_m1.pcm | ||
cmp references/BattleThemeA_p2_44_m5.pcm $DEST/BattleThemeA_p2_44_m5.pcm |