forked from kevinho/opencore-amr-android
-
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
Kevin He
committed
Apr 1, 2016
1 parent
b3e0fa3
commit a053f05
Showing
513 changed files
with
124,563 additions
and
84 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
Binary file not shown.
Binary file not shown.
17 changes: 0 additions & 17 deletions
17
demo/amr/src/main/java/com/hikvh/media/amr/AmrDecoder.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ain/java/com/hikvh/media/KCacheUtils.java → ...c/main/java/io/kvh/media/KCacheUtils.java
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,17 @@ | ||
package io.kvh.media.amr; | ||
|
||
/** | ||
* Created by kv.h on 14/11/21. | ||
*/ | ||
public class AmrDecoder { | ||
|
||
public static native long init(); | ||
|
||
public static native void exit(long state); | ||
|
||
public static native void decode(long state, byte[] in, short[] out); | ||
|
||
static { | ||
System.loadLibrary("amr-codec"); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../java/com/hikvh/media/amr/AmrEncoder.java → ...ain/java/io/kvh/media/amr/AmrEncoder.java
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,4 +1,4 @@ | ||
package com.hikvh.media.amr; | ||
package io.kvh.media.amr; | ||
|
||
/** | ||
* Created by kv.h on 14/11/21. | ||
|
4 changes: 2 additions & 2 deletions
4
...ain/java/com/hikvh/media/sound/Codec.java → ...c/main/java/io/kvh/media/sound/Codec.java
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
4 changes: 2 additions & 2 deletions
4
...ain/java/com/hikvh/media/sound/Filer.java → ...c/main/java/io/kvh/media/sound/Filer.java
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
2 changes: 1 addition & 1 deletion
2
.../java/com/hikvh/media/sound/Recorder.java → ...ain/java/io/kvh/media/sound/Recorder.java
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
4 changes: 2 additions & 2 deletions
4
.../java/com/hikvh/media/sound/SoundMan.java → ...ain/java/io/kvh/media/sound/SoundMan.java
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
2 changes: 1 addition & 1 deletion
2
...java/com/hikvh/media/sound/Supporter.java → ...in/java/io/kvh/media/sound/Supporter.java
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,4 +1,4 @@ | ||
package com.hikvh.media.sound; | ||
package io.kvh.media.sound; | ||
|
||
import java.io.File; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../java/com/hikvh/media/sound/Uploader.java → ...ain/java/io/kvh/media/sound/Uploader.java
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,4 +1,4 @@ | ||
package com.hikvh.media.sound; | ||
package io.kvh.media.sound; | ||
|
||
import android.util.Log; | ||
|
||
|
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,35 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
PV_TOP := $(LOCAL_PATH)/opencore | ||
PV_INCLUDES := $(LOCAL_PATH)/oscl \ | ||
$(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/common/include \ | ||
$(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/common/src \ | ||
$(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/dec/include \ | ||
$(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/dec/src \ | ||
$(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/enc/include \ | ||
$(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/enc/src \ | ||
$(PV_TOP)/codecs_v2/audio/gsm_amr/common/dec/include | ||
|
||
include $(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/common/Android.mk | ||
include $(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/dec/Android.mk | ||
include $(PV_TOP)/codecs_v2/audio/gsm_amr/amr_nb/enc/Android.mk | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_PATH := $(PV_TOP)/.. | ||
LOCAL_MODULE := amr-codec | ||
LOCAL_SRC_FILES := $(LOCAL_PATH)/amr_encoder.cpp \ | ||
$(LOCAL_PATH)/amr_decoder.cpp \ | ||
$(LOCAL_PATH)/wrapper.cpp | ||
|
||
LOCAL_C_INCLUDES := $(PV_INCLUDES) | ||
|
||
|
||
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog | ||
LOCAL_SHARED_LIBRARIES := libpv_amr_nb_common_lib \ | ||
libpvencoder_gsmamr \ | ||
libpvdecoder_gsmamr | ||
|
||
|
||
include $(BUILD_SHARED_LIBRARY) |
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,4 @@ | ||
APP_ABI := all | ||
APP_MODULES := amr-codec | ||
APP_PLATFORM := android-16 | ||
APP_OPTM := release |
Oops, something went wrong.