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

Go to the source code of this file.

Macros

#define com_tagtraum_casampledsp_CAURLInputStream_MAX_SKIP_BUFFER_SIZE   2048L
 

Functions

JNIEXPORT jboolean JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_isSeekable (JNIEnv *, jobject, jlong)
 Indicates whether the resource is seekable. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_seek (JNIEnv *, jobject, jlong, jlong)
 Attempts the seek a given timestamp in the resource. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_fillNativeBuffer (JNIEnv *, jobject, jlong)
 Callback to fill the native buffer. More...
 
JNIEXPORT jlong JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_open (JNIEnv *, jobject, jstring)
 Opens the given URL via AudioFileOpenURL. More...
 
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_close (JNIEnv *, jobject, jlong)
 Closes this resource and frees all associated resources. More...
 

Macro Definition Documentation

◆ com_tagtraum_casampledsp_CAURLInputStream_MAX_SKIP_BUFFER_SIZE

#define com_tagtraum_casampledsp_CAURLInputStream_MAX_SKIP_BUFFER_SIZE   2048L

Definition at line 11 of file com_tagtraum_casampledsp_CAURLInputStream.h.

Function Documentation

◆ Java_com_tagtraum_casampledsp_CAURLInputStream_close()

JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_close ( JNIEnv *  env,
jobject  stream,
jlong  afioPtr 
)

Closes this resource and frees all associated resources.

Parameters
envJNI env
streamcalling Java stream
afioPtrpointer to CAAudioFileIO

Definition at line 284 of file CAURLInputStream.cpp.

◆ Java_com_tagtraum_casampledsp_CAURLInputStream_fillNativeBuffer()

JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_fillNativeBuffer ( JNIEnv *  env,
jobject  stream,
jlong  afioPtr 
)

Callback to fill the native buffer.

Parameters
envJNI env
streamcalling Java stream
afioPtrpointer to CAAudioFileIO

Definition at line 52 of file CAURLInputStream.cpp.

◆ Java_com_tagtraum_casampledsp_CAURLInputStream_isSeekable()

JNIEXPORT jboolean JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_isSeekable ( JNIEnv *  env,
jobject  stream,
jlong  afioPtr 
)

Indicates whether the resource is seekable.

Parameters
envJNI env
streamcalling Java stream
afioPtrpointer to CAAudioFileIO
Returns
always returns JNI_TRUE

Definition at line 231 of file CAURLInputStream.cpp.

◆ Java_com_tagtraum_casampledsp_CAURLInputStream_open()

JNIEXPORT jlong JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_open ( JNIEnv *  env,
jobject  stream,
jstring  url 
)

Opens the given URL via AudioFileOpenURL.

Parameters
envJNI env
streamcalling Java stream
urlURL to open
Returns
pointer to the underlying CAAudioFileIO struct

Definition at line 113 of file CAURLInputStream.cpp.

◆ Java_com_tagtraum_casampledsp_CAURLInputStream_seek()

JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_seek ( JNIEnv *  env,
jobject  stream,
jlong  afioPtr,
jlong  microseconds 
)

Attempts the seek a given timestamp in the resource.

Parameters
envJNI env
streamcalling Java stream
afioPtrpointer to CAAudioFileIO
microsecondstimestamp in microseconds

Definition at line 243 of file CAURLInputStream.cpp.