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

Go to the source code of this file.

Macros

#define com_tagtraum_ffsampledsp_FFStreamInputStream_MAX_SKIP_BUFFER_SIZE   2048L
 
#define com_tagtraum_ffsampledsp_FFStreamInputStream_DEFAULT_NATIVE_BUFFER_SIZE   32768L
 

Functions

JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_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_FFStreamInputStream_open (JNIEnv *, jobject, jint)
 Creates the FFAudioIO, custom AVIOContext etc for reading data from the stream. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_close (JNIEnv *, jobject, jlong)
 Frees all resources associated with the given FFAudioIO. More...
 

Macro Definition Documentation

◆ com_tagtraum_ffsampledsp_FFStreamInputStream_DEFAULT_NATIVE_BUFFER_SIZE

#define com_tagtraum_ffsampledsp_FFStreamInputStream_DEFAULT_NATIVE_BUFFER_SIZE   32768L

◆ com_tagtraum_ffsampledsp_FFStreamInputStream_MAX_SKIP_BUFFER_SIZE

#define com_tagtraum_ffsampledsp_FFStreamInputStream_MAX_SKIP_BUFFER_SIZE   2048L

Function Documentation

◆ Java_com_tagtraum_ffsampledsp_FFStreamInputStream_close()

JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_close ( JNIEnv *  env,
jobject  stream,
jlong  aio_pointer 
)

Frees all resources associated with the given FFAudioIO.

Parameters
envJNIEnv
streamFFStreamInputStream instance
aio_pointerpointer to FFAudioIO

Definition at line 225 of file FFStreamInputStream.c.

◆ Java_com_tagtraum_ffsampledsp_FFStreamInputStream_fillNativeBuffer()

JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_fillNativeBuffer ( JNIEnv *  env,
jobject  stream,
jlong  aio_pointer 
)

Fills the java-side buffer (allocated via Java code) with fresh audio data.

Parameters
envJNIEnv
streamFFStreamInputStream instance
aio_pointerpointer to the FFAudioIO created when opening the file

Definition at line 113 of file FFStreamInputStream.c.

◆ Java_com_tagtraum_ffsampledsp_FFStreamInputStream_open()

JNIEXPORT jlong JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_open ( JNIEnv *  env,
jobject  stream,
jint  streamIndex 
)

Creates the FFAudioIO, custom AVIOContext etc for reading data from the stream.

Parameters
envJNIEnv
streamcalling FFStreamInputStream instance
Returns
pointer to the created FFAudioIO

Definition at line 132 of file FFStreamInputStream.c.