FFSampledSP
Macros | Functions
com_tagtraum_ffsampledsp_FFURLInputStream.h File Reference
#include <jni.h>

Go to the source code of this file.

Macros

#define com_tagtraum_ffsampledsp_FFURLInputStream_MAX_SKIP_BUFFER_SIZE   2048L
 
#define com_tagtraum_ffsampledsp_FFURLInputStream_DEFAULT_NATIVE_BUFFER_SIZE   32768L
 

Functions

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...
 

Macro Definition Documentation

◆ com_tagtraum_ffsampledsp_FFURLInputStream_DEFAULT_NATIVE_BUFFER_SIZE

#define com_tagtraum_ffsampledsp_FFURLInputStream_DEFAULT_NATIVE_BUFFER_SIZE   32768L

Definition at line 13 of file com_tagtraum_ffsampledsp_FFURLInputStream.h.

◆ com_tagtraum_ffsampledsp_FFURLInputStream_MAX_SKIP_BUFFER_SIZE

#define com_tagtraum_ffsampledsp_FFURLInputStream_MAX_SKIP_BUFFER_SIZE   2048L

Definition at line 11 of file com_tagtraum_ffsampledsp_FFURLInputStream.h.

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 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
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 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
envJNIEnv
streamcalling FFURLInputStream instance
urlURL
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
envJNIEnv
streamcalling FFURLInputStream instance
aio_pointerpointer to FFAudioIO context
microsecondstimestamp to seek to

Definition at line 128 of file FFURLInputStream.c.