R
res7cxbi
Im experimenting with this JNI thingy here....
I want to try to make an AudioFormat object (as a jobject of course)
and pass that to java.
In the JNI book from Sun it says that you need to get the class that
you will make instances from (FindClass), get the constructor
(GetMethodID), then finally use NewObject to get the jobject and return
it. Correct me if im wrong
The Constructor i want to use in AudioFormat looks like this:
AudioFormat(AudioFormat.Encoding encoding, float sampleRate, int
sampleSizeInBits, int channels, int frameSize, float frameRate, boolean
bigEndian)
What do i do with the AudioFormat.Encoding argument?
I want to try to make an AudioFormat object (as a jobject of course)
and pass that to java.
In the JNI book from Sun it says that you need to get the class that
you will make instances from (FindClass), get the constructor
(GetMethodID), then finally use NewObject to get the jobject and return
it. Correct me if im wrong
The Constructor i want to use in AudioFormat looks like this:
AudioFormat(AudioFormat.Encoding encoding, float sampleRate, int
sampleSizeInBits, int channels, int frameSize, float frameRate, boolean
bigEndian)
What do i do with the AudioFormat.Encoding argument?