FFSampledSP
Loading...
Searching...
No Matches
FFURLInputStream.c File Reference

Go to the source code of this file.

Functions

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.
JNIEXPORT jlong JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_open (JNIEnv *env, jobject stream, jstring url, jbyteArray urlBytes, jint streamIndex, jint fileBufferSize)
 Open a file/URL and create a corresponding FFAudioIO.
JNIEXPORT jboolean JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_isSeekable (JNIEnv *env, jobject stream, jlong aio_pointer)
 Indicates whether an FFAudioIO context is seekable.
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_seek (JNIEnv *env, jobject stream, jlong aio_pointer, jlong microseconds)
 Seeks to a point in time.
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_close (JNIEnv *env, jobject stream, jlong aio_pointer)
 Free all resources associated with a given FFAudioIO.

Function Documentation

◆ 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
envJNIEnv
streamcalling FFURLInputStream instance
aio_pointerpointer to FFAudioIO

Definition at line 192 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
envJNIEnv
streamFFURLInputStream instance
aio_pointerpointer 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
envJNIEnv
streamcalling FFURLInputStream instance
aio_pointerpointer to FFAudioIO context
Returns
true or false, depending on whether the URL is seekable

Definition at line 132 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,
jbyteArray urlBytes,
jint streamIndex,
jint fileBufferSize )

Open a file/URL and create a corresponding FFAudioIO.

Parameters
envJNIEnv
streamcalling FFURLInputStream instance
urlURL
Returns
pointer to new FFAudioIO

Definition at line 57 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
envJNIEnv
streamcalling FFURLInputStream instance
aio_pointerpointer to FFAudioIO context
microsecondstimestamp to seek to

Definition at line 149 of file FFURLInputStream.c.