Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Japanese translation #10

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bin/
obj/
build/
gen/
libs/*/*.so
.gradle
*.o
*.exe
2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>TimidityAE2.0</name>
<name>TimidityAE3.0</name>
<comment></comment>
<projects>
</projects>
Expand Down
1,657 changes: 840 additions & 817 deletions AndroidManifest.xml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Timidity AE contains TiMidity++ and sfArkLib:
http://sourceforge.net/projects/timidity
https://github.com/raboof/sfArkLib

This app uses an unmodified ActionBarSherlock Library which can be found at:
http://actionbarsherlock.com
This app uses an android-support-v4-preferencefragment Library which can be found at:
https://github.com/Machinarius/PreferenceFragment-Compat

Version 2.5.5
Version 2.7.4
44 changes: 44 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
}
}
allprojects {

repositories {
mavenCentral()
}
}

apply plugin: 'android'

dependencies {
compile 'com.android.support:appcompat-v7:+'
//compile 'com.android.support:preference-v7:+'
compile 'com.android.support:support-v4:+'
compile 'com.github.machinarius:preferencefragment:0.1.2'

//compile 'com.github.shkschneider:android_PreferenceFragmentCompat:1.2.0@aar'
}

android {
buildToolsVersion "23.0.2"
compileSdkVersion "android-23"

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
}
}
2 changes: 1 addition & 1 deletion jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_ABI := armeabi-v7a arm64-v8a armeabi mips mips64 x86 x86_64
APP_PLATFORM := android-8
APP_PLATFORM := android-9
APP_OPTIM := release
APP_CFLAGS := -DHAVE_CONFIG_H
Empty file modified jni/helper/.gitignore
100644 → 100755
Empty file.
22 changes: 11 additions & 11 deletions jni/helper/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ typedef double FLOAT_T;
// So libtimidityplusplus doesn't have to have any android libs
void andro_timidity_log_print(const char* tag, const char* fmt, ...)
{

va_list listPointer;
va_start( listPointer, fmt);
__android_log_print(ANDROID_LOG_ERROR, tag, fmt, listPointer);
Expand Down Expand Up @@ -67,7 +66,7 @@ char* configFile;
char* configFile2;
int sixteen;
int mono;
int itIsDone=0;
int outputOpen=0;
int shouldFreeInsts = 1;
//JNIEnv* envelope;
//JavaVM *jvm;
Expand Down Expand Up @@ -273,6 +272,7 @@ Java_com_xperia64_timidityae_JNIHandler_unloadLib(JNIEnv * env, jobject obj)
{
if(libsLoaded&&!libHandle)
{
__android_log_print(ANDROID_LOG_DEBUG, "TIMIDITY", "Nothing to unload");
return -1; // nothing to do
}
int libclose = dlclose(libHandle);
Expand All @@ -290,22 +290,22 @@ Java_com_xperia64_timidityae_JNIHandler_unloadLib(JNIEnv * env, jobject obj)
JNIEXPORT int JNICALL
Java_com_xperia64_timidityae_JNIHandler_prepareTimidity(JNIEnv * env, jobject obj, jstring config, jstring config2, jint jmono, jint jcustResamp, jint jsixteen, jint jPresSil, jint jreloading, jint jfreeInsts)
{
itIsDone = 0;
outputOpen = 0;
if(!jreloading)
{
Android_JNI_SetupThread();
//jclass tmp =
//pushClazz = (jclass)(*env)->NewGlobalRef(env, tmp);
pushClazz = (*env)->NewGlobalRef(env,(*env)->FindClass(env, "com/xperia64/timidityae/JNIHandler"));
pushBuffit=(*env)->GetStaticMethodID(env, pushClazz, "buffit", "([BI)V");
flushId=(*env)->GetStaticMethodID(env, pushClazz, "flushIt", "()V");
flushId=(*env)->GetStaticMethodID(env, pushClazz, "flushTrack", "()V");
buffId=(*env)->GetStaticMethodID(env, pushClazz, "bufferSize", "()I");
controlId=(*env)->GetStaticMethodID(env, pushClazz, "controlMe", "(I)V");
controlId=(*env)->GetStaticMethodID(env, pushClazz, "controlCallback", "(I)V");
buffId=(*env)->GetStaticMethodID(env, pushClazz, "bufferSize", "()I");
rateId=(*env)->GetStaticMethodID(env, pushClazz, "getRate", "()I");
finishId=(*env)->GetStaticMethodID(env, pushClazz, "finishIt", "()V");
seekInitId=(*env)->GetStaticMethodID(env, pushClazz, "initSeeker", "(I)V");
updateSeekId=(*env)->GetStaticMethodID(env, pushClazz, "updateSeeker", "(II)V");
finishId=(*env)->GetStaticMethodID(env, pushClazz, "finishCallback", "()V");
seekInitId=(*env)->GetStaticMethodID(env, pushClazz, "initSeekBar", "(I)V");
updateSeekId=(*env)->GetStaticMethodID(env, pushClazz, "updateSeekBar", "(II)V");
pushLyricId=(*env)->GetStaticMethodID(env, pushClazz, "updateLyrics", "([B)V");
updateMaxChanId=(*env)->GetStaticMethodID(env, pushClazz, "updateMaxChannels", "(I)V");
updateProgId=(*env)->GetStaticMethodID(env, pushClazz, "updateProgramInfo", "(II)V");
Expand Down Expand Up @@ -360,11 +360,11 @@ Java_com_xperia64_timidityae_JNIHandler_loadSongTimidity(JNIEnv * env, jobject
// Don't you just love JNI+threading?

// Must be called once to open output. Thank you mac_main for the NULL file list thing
if(!itIsDone)
if(!outputOpen)
{
setMaxChannels((int)MAX_CHANNELS);
(*timidity_play)(0, NULL);
itIsDone=1;
outputOpen=1;
}
int main_ret;
char *filez[1];
Expand All @@ -373,7 +373,7 @@ Java_com_xperia64_timidityae_JNIHandler_loadSongTimidity(JNIEnv * env, jobject
filez[0]=(char*)(*env)->GetStringUTFChars(env, song, &isCopy);
//main_ret = timidity_play_main(1, filez);
(*ext_play_list)(1,filez);
(*env)->ReleaseStringUTFChars(env, song, filez[0]);
(*env)->ReleaseStringUTFChars(env, song, filez[0]);
finishAE();

//(*theGoodEnv)->DeleteLocalRef(theGoodEnv, pushClazz);
Expand Down
1 change: 0 additions & 1 deletion jni/sfArkLib
Submodule sfArkLib deleted from ee08d0
23 changes: 23 additions & 0 deletions jni/sfArkLib/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := sfark

LOCAL_C_INCLUDES := $(LOCAL_PATH)

EMACS = no

CFLAGS = -fPIC -Ofast

LOCAL_CPP_EXTENSION := .cpp

LOCAL_SRC_FILES:= sfklCoding.cpp
LOCAL_SRC_FILES+= sfklCrunch.cpp
LOCAL_SRC_FILES+= sfklDiff.cpp
LOCAL_SRC_FILES+= sfklFile.cpp
LOCAL_SRC_FILES+= sfklLPC.cpp
LOCAL_SRC_FILES+= sfklString.cpp
LOCAL_SRC_FILES+= sfklZip.cpp

include $(BUILD_STATIC_LIBRARY)
Loading