CASampledSP
Macros | Functions
com_tagtraum_casampledsp_CAStreamInputStream.h File Reference
#include <jni.h>

Go to the source code of this file.

Macros

#define com_tagtraum_casampledsp_CAStreamInputStream_MAX_SKIP_BUFFER_SIZE   2048L
 

Functions

JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAStreamInputStream_fillNativeBuffer (JNIEnv *, jobject, jlong, jbyteArray, jint)
 Called by the Java code to fill the native buffer. More...
 
JNIEXPORT jlong JNICALL Java_com_tagtraum_casampledsp_CAStreamInputStream_open (JNIEnv *, jobject, jint)
 Opens the audio stream - at this point only the callbacks are set up via AudioFileStreamOpen. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAStreamInputStream_close (JNIEnv *, jobject, jlong)
 Closes the stream and all associated resources. More...
 

Macro Definition Documentation

◆ com_tagtraum_casampledsp_CAStreamInputStream_MAX_SKIP_BUFFER_SIZE

#define com_tagtraum_casampledsp_CAStreamInputStream_MAX_SKIP_BUFFER_SIZE   2048L

Function Documentation

◆ Java_com_tagtraum_casampledsp_CAStreamInputStream_close()

JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAStreamInputStream_close ( JNIEnv *  env,
jobject  stream,
jlong  asioPtr 
)

Closes the stream and all associated resources.

Parameters
envJNI env
streamcalling stream instance
asioPtrpointer to CAAudioStreamIO

Definition at line 298 of file CAStreamInputStream.cpp.

◆ Java_com_tagtraum_casampledsp_CAStreamInputStream_fillNativeBuffer()

JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAStreamInputStream_fillNativeBuffer ( JNIEnv *  env,
jobject  stream,
jlong  asioPtr,
jbyteArray  buf,
jint  length 
)

Called by the Java code to fill the native buffer.

Parameters
envJNI env
streamstream instance
asioPtrpointer to CAAudioStreamIO
bufbyte array with the first X bytes of data
lengthlength of the byte buffer

Definition at line 212 of file CAStreamInputStream.cpp.

◆ Java_com_tagtraum_casampledsp_CAStreamInputStream_open()

JNIEXPORT jlong JNICALL Java_com_tagtraum_casampledsp_CAStreamInputStream_open ( JNIEnv *  env,
jobject  stream,
jint  hint 
)

Opens the audio stream - at this point only the callbacks are set up via AudioFileStreamOpen.

Parameters
envJNI env
streamJava stream instance
hintfile type hint
Returns
pointer to CAAudioStreamIO struct

Definition at line 249 of file CAStreamInputStream.cpp.