- Home /
How to convert wav to flac on Android?
I want to convert a wav file to a flac file on Android. I found this:
https://sourceforge.net/projects/javaflacencoder/files/
I've put it into Plugins/Android folder but I don't know how to use its function in C# scripts. I tried this:
[DllImport("javaFlacEncoder-0.3.1")]
But it gave the following error:
error CS0592: The attribute System.Runtime.InteropServices.DllImportAttribute' is not valid on this declaration type. It is valid on method' declarations only
Answer by tonyarabish · Mar 19, 2019 at 01:14 PM
you can use Avdshare Audio Converter to Convert WAV to FLAC,MP3, AIFF, AAC, WMA, AC3, MP2, OGG, M4A and other audio formats to further extend WAV usage on more media players or portable devices.
Your answer
Follow this Question
Related Questions
How to write a java lib for unity as a plugin to make run another android app? 1 Answer
Now that Unity 4.1.2 broke the Android plugin examples, what do you use to learn them? 1 Answer
Any resource for creating jar without extending UnityActivityPlayer? 1 Answer
Editing Android Plugins 0 Answers
Help building changes to .java file included in Unity supplied package. 1 Answer