Skip to content

Commit

Permalink
Merge pull request #3 from umjammer/1.0.4
Browse files Browse the repository at this point in the history
1.0.4
  • Loading branch information
umjammer authored Dec 7, 2017
2 parents 196bdc1 + 1c4aba9 commit 67db9c0
Show file tree
Hide file tree
Showing 468 changed files with 3,088 additions and 4,771 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

# vavi-sound

| **SPI** | **Codec** | **Description** | **IN Status** | **OUT Status** | **SPI Status** |
|:--------|:-----------|:-----------------|:--------------|:---------------|:---------------|
| midi | MFi | Japanese cell phone format | c | o | o |
| midi | SMAF | YAMAHA cell phone format | c | o | o |
| sampled | MFi | Japanese cell phone format | x | o | x |
| sampled | SMAF | YAMAHA cell phone format | o | o | o |
| sampled | CCITT ADPCM | G711, G721, G723 | o | o | x |
| - | DVI ADPCM | DVI ADPCM | o | o | - |
| - | IMA ADPCM | IMA ADPCM | o | o | - |
| - | MA ADPCM | YAMAHA ADPCM | o | o | - |
| - | MS ADPCM | Microsoft ADPCM | o | o | - |
| - | OKI ADPCM | OKI ADPCM | o | o | - |
| - | ROHM ADPCM | ROHM ADPCM | o | o | - |
| - | VOX ADPCM | VOX ADPCM | o | o | - |
| - | YAMAHA ADPCM | YAMAHA ADPCM | o | o | - |
| - | YM2068 ADPCM | YAMAHA ADPCM | o | o | - |
| - | ssrc | resampling | o | - | - |
| **SPI** | **Codec** | **Description** | **IN Status** | **OUT Status** | **SPI Status** | **Comment** |
|:--------|:-----------|:-----------------|:--------------|:---------------|:---------------|:------------|
| midi | MFi | Japanese cell phone format | c | o | o | spi write only |
| midi | SMAF | YAMAHA cell phone format | c | o | o | spi write only |
| sampled | MFi | Japanese cell phone format | x | o | x | |
| sampled | SMAF | YAMAHA cell phone format | o | o | o | |
| sampled | CCITT ADPCM | G711, G721, G723 | o | o | x | |
| - | DVI ADPCM | DVI ADPCM | o | o | - | |
| - | IMA ADPCM | IMA ADPCM | o | o | - | |
| - | MA ADPCM | YAMAHA ADPCM | o | o | - | |
| - | MS ADPCM | Microsoft ADPCM | o | o | - | |
| - | OKI ADPCM | OKI ADPCM | o | o | - | |
| - | ROHM ADPCM | ROHM ADPCM | o | o | - | |
| - | VOX ADPCM | VOX ADPCM | o | o | - | |
| - | YAMAHA ADPCM | YAMAHA ADPCM | o | o | - | |
| - | YM2068 ADPCM | YAMAHA ADPCM | o | o | - | |
| sampled | ssrc | resampling | o | - | o | waiting for phase 1, TODO use nio pipe |

### Legend ###

Expand Down
11 changes: 6 additions & 5 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@
xmlns:artifact="urn:maven-artifact-ant">

<path id="maven-ant-tasks.classpath">
<fileset dir="${user.home}/lib/java/maven-ant-tasks">
<include name="*.jar" />
<fileset dir="${user.home}/lib/java">
<include name="maven-ant-tasks*.jar" />
</fileset>
</path>
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"
classpathref="maven-ant-tasks.classpath" />

<property environment="env"/>
<property file="local.properties" />

<xmlproperty file="pom.xml" />

<!-- Path Definitions -->
Expand All @@ -42,8 +41,10 @@
<pom refid="maven.project"/>
</artifact:dependencies>
<artifact:mvn pom="pom.xml">
<arg value="package"/>
<arg value="-Dmaven.test.skip=true"/>
<arg value="-q" />
<arg value="clean" />
<arg value="package" />
<arg value="-DskipTests=true" />
</artifact:mvn>
</target>

Expand Down
95 changes: 0 additions & 95 deletions local.properties.sample
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
#
# Copyright (c) 2005 by Naohide Sano, All rights reserved.
#
# Written by Naohide Sano
#
# ant properties for vavi.sound
#
# @author Naohide Sano
# @version 0.00 030331 nsano initial version
#

jvm=${env.JAVA_HOME}/bin/java
javac.source=src/main/java
javac.source.test=src/test/java
Expand All @@ -18,87 +7,3 @@ javac.dest=target/classes
javac.dest.test=target/test-classes

findbugs.home=/usr/local/findbugs

#
# midi
#
# @param
#
m2.repos=${user.home}/.m2/repository
gervill.dir=${user.home}/src/000/gervill
vavi.sound.midi.dir=../156/tmp
dir.support1=${user.home}/work/mobaradi-audio
#vavi.sound.midi.dir=/tmp
#vavi.sound.midi.dir=${user.home}/Music/1/1
vavi.sound.midi.sequencer=#Real Time Sequencer
vavi.sound.midi.synthesizer=com.sun.media.sound.SoftSynthesizer
vavi.sound.midi.soundbank=${user.home}/lib/audio/sf2/SGM-V2.01.sf2

#
# analyze
#
#vavi.sound.analyze.dir=/tmp/sound/wav2mld/n505

#
# wave
#
vavi.sound.wave.in=tmp/00001.wav
vavi.sound.wave.out=tmp/xxx.pcm

#
# play
#
vavi.sound.play.model=sh900
vavi.sound.play.mld_play=tmp/${vavi.sound.play.model}/*.mld
mld.file=src/test/resources/vavi/sound/mfi/HOTEL\ PACIFIC.mld
vavi.sound.play.mmf_play=tmp/mmf/*.mmf

#
# split
#
vavi.sound.split.in=file://${user.home}/Movies/battle_of_the_sexes.avi
vavi.sound.split.audio=.wav
vavi.sound.split.video=.mov

#
# dsr
#
vavi.sound.dsr.in=file://${user.home}/Movies/[PV]\ wyolica\ -\ red\ song.mpg

#
# run
#
vavi.sound.run.in=tmp/w8.wav
vavi.sound.run.out=${user.home}/src/vavi/java/test/150/tmp
vavi.sound.run.length=10
vavi.sound.run.base=out_%05d.mld
vavi.sound.run.type=sh900
vavi.sound.run.null=/dev/null

#
# smaf
#
vavi.sound.smaf.in=tmp/w8.wav
vavi.sound.smaf.out=${user.home}/src/vavi/java/test/150/tmp
vavi.sound.smaf.time=15
vavi.sound.smaf.base=out_%05d.mmf
#vavi.sound.smaf.null=NUL
vavi.sound.smaf.null=/dev/null
vavi.sound.smaf.sampleRate=8000

#
# vsq
#
#vavi.sound.vsq.in=tmp/utahime.vsq
#vavi.sound.vsq.in=${user.home}/arc/DTM/1/Tunak.vsq
vavi.sound.vsq.in=${user.home}/arc/DTM/1/MrBlue.vsq
vavi.sound.vsq.out=tmp/utahime.txt

#
# midi
#
vavi.sound.midi.device=Microsoft MIDI \u30de\u30c3\u30d1\u30fc
vavi.sound.midi.sequencer=Tritonus Java Sequencer
vavi.sound.midi.in=../../vavi/apps/midiEditor/sekaini.mid

##
18 changes: 14 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
<organization>
<name></name>
</organization>
<version>1.0.3</version>
<version>1.0.4</version>
<url>https://github.com/umjammer/vavi-sound</url>
<description>1.0.3
<description>1.0.4

ssrc spi (wip)

1.0.3

make build pass

Expand All @@ -23,7 +27,11 @@

1.0.1

refactor properties related</description>
refactor properties related

TODO

adpcm spi</description>
<build>
<plugins>
<plugin>
Expand All @@ -43,7 +51,9 @@
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>Windows-31J</encoding>
<includes>
<include>**/*_ja.properties</include>
</includes>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/vavi/sound/adpcm/AdpcmInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* AdpcmInputStream.
*
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano)
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano)
* @version 0.00 030714 nsano initial version <br>
* 0.01 030714 nsano fine tune <br>
* 0.02 030714 nsano fix available() <br>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/vavi/sound/adpcm/AdpcmOutputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* AdpcmOutputStream.
*
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano)
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano)
* @version 0.00 030827 nsano initial version <br>
* 0.10 060427 nsano refactoring <br>
*/
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/vavi/sound/adpcm/Codec.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@


/**
* Codec.
* Codec.
*
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano)
* @author <a href="mailto:[email protected]">Naohide Sano</a> (nsano)
* @version 0.00 060427 nsano initial version <br>
*/
public interface Codec {
/**
* @param pcm 16bit
* @param pcm 16bit
* @return adpcm 4bit
*/
int encode(int pcm);

/**
* @param adpcm 4bit
* @param adpcm 4bit
* @return pcm 16bit
*/
int decode(int adpcm);
Expand Down
Loading

0 comments on commit 67db9c0

Please sign in to comment.