#include <jni.h>
Go to the source code of this file.
|
JNIEXPORT jboolean JNICALL | Java_com_tagtraum_casampledsp_CAURLInputStream_isSeekable (JNIEnv *, jobject, jlong) |
| Indicates whether the resource is seekable. More...
|
|
JNIEXPORT void JNICALL | Java_com_tagtraum_casampledsp_CAURLInputStream_seek (JNIEnv *, jobject, jlong, jlong) |
| Attempts the seek a given timestamp in the resource. More...
|
|
JNIEXPORT void JNICALL | Java_com_tagtraum_casampledsp_CAURLInputStream_fillNativeBuffer (JNIEnv *, jobject, jlong) |
| Callback to fill the native buffer. More...
|
|
JNIEXPORT jlong JNICALL | Java_com_tagtraum_casampledsp_CAURLInputStream_open (JNIEnv *, jobject, jstring) |
| Opens the given URL via AudioFileOpenURL. More...
|
|
JNIEXPORT void JNICALL | Java_com_tagtraum_casampledsp_CAURLInputStream_close (JNIEnv *, jobject, jlong) |
| Closes this resource and frees all associated resources. More...
|
|
◆ com_tagtraum_casampledsp_CAURLInputStream_MAX_SKIP_BUFFER_SIZE
#define com_tagtraum_casampledsp_CAURLInputStream_MAX_SKIP_BUFFER_SIZE 2048L |
◆ Java_com_tagtraum_casampledsp_CAURLInputStream_close()
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_close |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
afioPtr |
|
) |
| |
Closes this resource and frees all associated resources.
- Parameters
-
env | JNI env |
stream | calling Java stream |
afioPtr | pointer to CAAudioFileIO |
Definition at line 284 of file CAURLInputStream.cpp.
◆ Java_com_tagtraum_casampledsp_CAURLInputStream_fillNativeBuffer()
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_fillNativeBuffer |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
afioPtr |
|
) |
| |
◆ Java_com_tagtraum_casampledsp_CAURLInputStream_isSeekable()
JNIEXPORT jboolean JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_isSeekable |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
afioPtr |
|
) |
| |
Indicates whether the resource is seekable.
- Parameters
-
env | JNI env |
stream | calling Java stream |
afioPtr | pointer to CAAudioFileIO |
- Returns
- always returns
JNI_TRUE
Definition at line 231 of file CAURLInputStream.cpp.
◆ Java_com_tagtraum_casampledsp_CAURLInputStream_open()
JNIEXPORT jlong JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_open |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jstring |
url |
|
) |
| |
Opens the given URL via AudioFileOpenURL.
- Parameters
-
env | JNI env |
stream | calling Java stream |
url | URL to open |
- Returns
- pointer to the underlying CAAudioFileIO struct
Definition at line 113 of file CAURLInputStream.cpp.
◆ Java_com_tagtraum_casampledsp_CAURLInputStream_seek()
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_seek |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
afioPtr, |
|
|
jlong |
microseconds |
|
) |
| |
Attempts the seek a given timestamp in the resource.
- Parameters
-
env | JNI env |
stream | calling Java stream |
afioPtr | pointer to CAAudioFileIO |
microseconds | timestamp in microseconds |
Definition at line 243 of file CAURLInputStream.cpp.