FFSampledSP
Functions
FFStreamInputStream.c File Reference
#include "com_tagtraum_ffsampledsp_FFStreamInputStream.h"
#include "FFUtils.h"

Go to the source code of this file.

Functions

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. More...
 
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. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_ffsampledsp_FFStreamInputStream_close (JNIEnv *env, jobject stream, jlong aio_pointer)
 Frees all resources associated with the given FFAudioIO. More...
 

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.