-
Notifications
You must be signed in to change notification settings - Fork 33
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
Android crash with amplitudesFromAudioJNI #36
Comments
Hi @devvuphan. Please, provide this raw mp3 file. I'd like to test it |
thanks for you feedback. |
Hmm, library processed file without errors.
Please, try to process this file directly with Amplituda. You can use java code below: Amplituda amplituda = new Amplituda(this);
amplituda.processAudio(
R.raw.test,
Compress.withParams(Compress.AVERAGE, 1),
new AmplitudaProgressListener() {
@Override
public void onStartProgress() {
super.onStartProgress();
System.out.println("Start Progress");
}
@Override
public void onStopProgress() {
super.onStopProgress();
System.out.println("Stop Progress");
}
@Override
public void onProgress(ProgressOperation operation, int progress) {
String currentOperation = "";
switch (operation) {
case PROCESSING: currentOperation = "Process audio"; break;
case DECODING: currentOperation = "Decode resource"; break;
case DOWNLOADING: currentOperation = "Download audio from url"; break;
}
System.out.printf("%s: %d%% %n", currentOperation, progress);
}
}
).get(result -> { printResult(result);
}, exception -> { exception.printStackTrace(); }); |
Thanks lincollincol. I will try with your code |
Hello, No pending exception expected: java.lang.NoSuchFieldError: no "Ljava/lang/String;" field "amplitudes" in class "Llinc/com/amplituda/AmplitudaResultJNI;" or its superclasses. Thanks! |
Hello! Please, update Amplituda to |
Hello, I tried but still not works i don't know why |
I also tried this code but Android Studio told me that it cannot resolve classes and asked me to create Amplituda Class |
How can i try directly try to process file directly with Amplituda? |
Consumer rules updated in |
I'm trying to apply waveformSeekBar + Amplituda to my project. Your description is very cool. But i can't run it with mp3 raw folder.
Added:
And i got this error:
Are there any changes i need to do more? Or i missed any guideline?
Thank you.
The text was updated successfully, but these errors were encountered: