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

Go to the source code of this file.

Macros

#define com_tagtraum_ffsampledsp_FFCodecInputStream_MAX_SKIP_BUFFER_SIZE   2048L
 
#define com_tagtraum_ffsampledsp_FFCodecInputStream_DEFAULT_NATIVE_BUFFER_SIZE   32768L
 

Functions

JNIEXPORT jlong JNICALL Java_com_tagtraum_ffsampledsp_FFCodecInputStream_open (JNIEnv *, jobject, jobject, jlong)
 Re-configures SwrContext and Encoder to match the provided target_format. More...
 

Macro Definition Documentation

◆ com_tagtraum_ffsampledsp_FFCodecInputStream_DEFAULT_NATIVE_BUFFER_SIZE

#define com_tagtraum_ffsampledsp_FFCodecInputStream_DEFAULT_NATIVE_BUFFER_SIZE   32768L

◆ com_tagtraum_ffsampledsp_FFCodecInputStream_MAX_SKIP_BUFFER_SIZE

#define com_tagtraum_ffsampledsp_FFCodecInputStream_MAX_SKIP_BUFFER_SIZE   2048L

Function Documentation

◆ Java_com_tagtraum_ffsampledsp_FFCodecInputStream_open()

JNIEXPORT jlong JNICALL Java_com_tagtraum_ffsampledsp_FFCodecInputStream_open ( JNIEnv *  env,
jobject  object,
jobject  target_format,
jlong  aio_pointer 
)

Re-configures SwrContext and Encoder to match the provided target_format.

Parameters
envJNIEnv
objectstream instance this call stems from, i.e. a FFCodecInputStream
target_formattarget AudioFormat
aio_pointerPointer to the FFAudioIO struct of the FFNativePeerInputStream that opened the file/stream
Returns
pointer to the FFAudioIO struct that was given as parameter

Definition at line 70 of file FFCodecInputStream.c.