#include <jni.h>
Go to the source code of this file.
|
JNIEXPORT void JNICALL | Java_com_tagtraum_casampledsp_CACodecInputStream_reset (JNIEnv *, jobject, jlong) |
| Resets the converter - necessary after seek() to flush codec buffers. More...
|
|
JNIEXPORT void JNICALL | Java_com_tagtraum_casampledsp_CACodecInputStream_fillNativeBuffer (JNIEnv *, jobject, jlong) |
| Fill this streams native buffer by transcoding the content of the source stream's native buffer to the desired format. More...
|
|
JNIEXPORT jlong JNICALL | Java_com_tagtraum_casampledsp_CACodecInputStream_open (JNIEnv *, jobject, jobject, jobject, jlong) |
| Sets up an AudioConverter to convert data to the desired format. More...
|
|
JNIEXPORT void JNICALL | Java_com_tagtraum_casampledsp_CACodecInputStream_close (JNIEnv *, jobject, jlong) |
| Closes the AudioConverter and cleans up other resources. More...
|
|
◆ com_tagtraum_casampledsp_CACodecInputStream_MAX_SKIP_BUFFER_SIZE
#define com_tagtraum_casampledsp_CACodecInputStream_MAX_SKIP_BUFFER_SIZE 2048L |
◆ Java_com_tagtraum_casampledsp_CACodecInputStream_close()
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CACodecInputStream_close |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
converterPtr |
|
) |
| |
◆ Java_com_tagtraum_casampledsp_CACodecInputStream_fillNativeBuffer()
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CACodecInputStream_fillNativeBuffer |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
converterPtr |
|
) |
| |
Fill this streams native buffer by transcoding the content of the source stream's native buffer to the desired format.
- Parameters
-
env | JNI env |
stream | calling stream object |
converterPtr | pointer to the used CAAudioConverterIO struct |
Definition at line 97 of file CACodecInputStream.cpp.
◆ Java_com_tagtraum_casampledsp_CACodecInputStream_open()
JNIEXPORT jlong JNICALL Java_com_tagtraum_casampledsp_CACodecInputStream_open |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jobject |
targetFormat, |
|
|
jobject |
sourceStream, |
|
|
jlong |
pointer |
|
) |
| |
Sets up an AudioConverter to convert data to the desired format.
- Parameters
-
env | JNI env |
stream | calling stream object |
targetFormat | target format |
sourceStream | source data stream |
pointer | pointer to the source data stream's CAAudioIO struct |
- Returns
- new CAAudioConverterIO pointer
Definition at line 182 of file CACodecInputStream.cpp.
◆ Java_com_tagtraum_casampledsp_CACodecInputStream_reset()
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CACodecInputStream_reset |
( |
JNIEnv * |
env, |
|
|
jobject |
stream, |
|
|
jlong |
converterPtr |
|
) |
| |
Resets the converter - necessary after seek() to flush codec buffers.
- Parameters
-
Definition at line 381 of file CACodecInputStream.cpp.