|
FFSampledSP
|
Go to the source code of this file.
Functions | |
| JNIEXPORT void JNICALL | Java_com_tagtraum_ffsampledsp_FFStreamInputStream_initIDs (JNIEnv *env, jclass streamClass) |
| Init static method and field ids for Java methods/fields. | |
| JNIEXPORT void JNICALL | Java_com_tagtraum_ffsampledsp_FFStreamInputStream_fillNativeBuffer (JNIEnv *env, jobject stream, jlong aio_pointer) |
| Fills the java-side buffer (allocated via Java code) with fresh audio data. | |
| JNIEXPORT jlong JNICALL | Java_com_tagtraum_ffsampledsp_FFStreamInputStream_open (JNIEnv *env, jobject stream, jint streamIndex) |
| Creates the FFAudioIO, custom AVIOContext etc for reading data from the stream. | |
| JNIEXPORT void JNICALL | Java_com_tagtraum_ffsampledsp_FFStreamInputStream_close (JNIEnv *env, jobject stream, jlong aio_pointer) |
| Frees all resources associated with the given FFAudioIO. | |
| JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_close | ( | JNIEnv * | env, |
| jobject | stream, | ||
| jlong | aio_pointer ) |
Frees all resources associated with the given FFAudioIO.
| env | JNIEnv |
| stream | FFStreamInputStream instance |
| aio_pointer | pointer to FFAudioIO |
Definition at line 259 of file FFStreamInputStream.c.
| JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_fillNativeBuffer | ( | JNIEnv * | env, |
| jobject | stream, | ||
| jlong | aio_pointer ) |
Fills the java-side buffer (allocated via Java code) with fresh audio data.
| env | JNIEnv |
| stream | FFStreamInputStream instance |
| aio_pointer | pointer to the FFAudioIO created when opening the file |
Definition at line 132 of file FFStreamInputStream.c.
| JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_initIDs | ( | JNIEnv * | env, |
| jclass | streamClass ) |
Init static method and field ids for Java methods/fields.
Called exactly once from the static initializer of FFStreamInputStream. Because the JVM serializes class initialization, the ids are guaranteed to be set before any thread can call into native code with a stream instance.
| env | JNIEnv |
| streamClass | FFStreamInputStream class |
Definition at line 43 of file FFStreamInputStream.c.
| JNIEXPORT jlong JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_open | ( | JNIEnv * | env, |
| jobject | stream, | ||
| jint | streamIndex ) |
Creates the FFAudioIO, custom AVIOContext etc for reading data from the stream.
| env | JNIEnv |
| stream | calling FFStreamInputStream instance |
Definition at line 153 of file FFStreamInputStream.c.