CASampledSP
Functions
CAStreamInputStream.cpp File Reference
#include "com_tagtraum_casampledsp_CAStreamInputStream.h"
#include "CAUtils.h"
#include <pthread.h>

Go to the source code of this file.

Functions

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. More...
 
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. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAStreamInputStream_close (JNIEnv *env, jobject stream, jlong asioPtr)
 Closes the stream and all associated resources. More...
 

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.