CASampledSP
Loading...
Searching...
No Matches
CAURLInputStream.cpp File Reference
#include "com_tagtraum_casampledsp_CAURLInputStream.h"
#include "CAUtils.h"

Go to the source code of this file.

Functions

JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_fillNativeBuffer (JNIEnv *env, jobject stream, jlong afioPtr)
 Callback to fill the native buffer.
 
JNIEXPORT jlong JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_open (JNIEnv *env, jobject stream, jstring url, jint bufferSize)
 Opens the given URL via AudioFileOpenURL.
 
JNIEXPORT jboolean JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_isSeekable (JNIEnv *env, jobject stream, jlong afioPtr)
 Indicates whether the resource is seekable.
 
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.
 
JNIEXPORT void JNICALL Java_com_tagtraum_casampledsp_CAURLInputStream_close (JNIEnv *env, jobject stream, jlong afioPtr)
 Closes this resource and frees all associated resources.
 

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 286 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 233 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,
jint bufferSize )

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 115 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 245 of file CAURLInputStream.cpp.