FFSampledSP
Functions
FFURLInputStream.c File Reference
#include "com_tagtraum_ffsampledsp_FFURLInputStream.h"
#include "FFUtils.h"

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. More...
 
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. More...
 
JNIEXPORT jboolean JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_isSeekable (JNIEnv *env, jobject stream, jlong aio_pointer)
 Indicates whether an FFAudioIO context is seekable. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_seek (JNIEnv *env, jobject stream, jlong aio_pointer, jlong microseconds)
 Seeks to a point in time. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFURLInputStream_close (JNIEnv *env, jobject stream, jlong aio_pointer)
 Free all resources associated with a given FFAudioIO. More...
 

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.