#include <jni.h>
Go to the source code of this file.
|
JNIEXPORT jboolean JNICALL | Java_com_tagtraum_ffsampledsp_FFURLInputStream_isSeekable (JNIEnv *, jobject, jlong) |
| Indicates whether an FFAudioIO context is seekable. More...
|
|
JNIEXPORT void JNICALL | Java_com_tagtraum_ffsampledsp_FFURLInputStream_seek (JNIEnv *, jobject, jlong, jlong) |
| Seeks to a point in time. More...
|
|
JNIEXPORT void JNICALL | Java_com_tagtraum_ffsampledsp_FFURLInputStream_fillNativeBuffer (JNIEnv *, jobject, jlong) |
| Fills the java-side buffer (allocated via Java code) with fresh audio data. More...
|
|
JNIEXPORT jlong JNICALL | Java_com_tagtraum_ffsampledsp_FFURLInputStream_open (JNIEnv *, jobject, jstring, jint) |
| Open a file/URL and create a corresponding FFAudioIO. More...
|
|
JNIEXPORT void JNICALL | Java_com_tagtraum_ffsampledsp_FFURLInputStream_close (JNIEnv *, jobject, jlong) |
| Free all resources associated with a given FFAudioIO. More...
|
|
◆ com_tagtraum_ffsampledsp_FFURLInputStream_DEFAULT_NATIVE_BUFFER_SIZE
#define com_tagtraum_ffsampledsp_FFURLInputStream_DEFAULT_NATIVE_BUFFER_SIZE 32768L |
◆ com_tagtraum_ffsampledsp_FFURLInputStream_MAX_SKIP_BUFFER_SIZE
#define com_tagtraum_ffsampledsp_FFURLInputStream_MAX_SKIP_BUFFER_SIZE 2048L |
◆ Java_com_tagtraum_ffsampledsp_FFURLInputStream_close()
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_close |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
aio_pointer |
|
) |
| |
Free all resources associated with a given FFAudioIO.
- Parameters
-
env | JNIEnv |
stream | calling FFURLInputStream instance |
aio_pointer | pointer to FFAudioIO |
Definition at line 166 of file FFURLInputStream.c.
◆ Java_com_tagtraum_ffsampledsp_FFURLInputStream_fillNativeBuffer()
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_fillNativeBuffer |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
aio_pointer |
|
) |
| |
Fills the java-side buffer (allocated via Java code) with fresh audio data.
- Parameters
-
env | JNIEnv |
stream | FFURLInputStream instance |
aio_pointer | pointer to the FFAudioIO created when opening the file |
Definition at line 35 of file FFURLInputStream.c.
◆ Java_com_tagtraum_ffsampledsp_FFURLInputStream_isSeekable()
JNIEXPORT jboolean JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_isSeekable |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
aio_pointer |
|
) |
| |
Indicates whether an FFAudioIO context is seekable.
- Parameters
-
env | JNIEnv |
stream | calling FFURLInputStream instance |
aio_pointer | pointer to FFAudioIO context |
- Returns
- true or false, depending on whether the URL is seekable
Definition at line 113 of file FFURLInputStream.c.
◆ Java_com_tagtraum_ffsampledsp_FFURLInputStream_open()
JNIEXPORT jlong JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_open |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jstring |
url, |
|
|
jint |
streamIndex |
|
) |
| |
Open a file/URL and create a corresponding FFAudioIO.
- Parameters
-
env | JNIEnv |
stream | calling FFURLInputStream instance |
url | URL |
- Returns
- pointer to new FFAudioIO
Definition at line 56 of file FFURLInputStream.c.
◆ Java_com_tagtraum_ffsampledsp_FFURLInputStream_seek()
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_seek |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
aio_pointer, |
|
|
jlong |
microseconds |
|
) |
| |
Seeks to a point in time.
- Parameters
-
env | JNIEnv |
stream | calling FFURLInputStream instance |
aio_pointer | pointer to FFAudioIO context |
microseconds | timestamp to seek to |
Definition at line 128 of file FFURLInputStream.c.