CASampledSP
Loading...
Searching...
No Matches
CAUtils.h File Reference
#include <math.h>
#include <jni.h>
#include <AudioToolbox/AudioToolbox.h>
#include <CoreServices/CoreServices.h>

Go to the source code of this file.

Data Structures

struct  CAAudioIO
 Central context representing the native peer to the Java CANativePeerInputStream object. More...
 
struct  CAAudioConverterIO
 Central context representing the native peer to the Java CACodecInputStream object. More...
 
struct  CAAudioFileIO
 Central context representing the native peer to the Java CAURLInputStream object. More...
 
struct  CAAudioStreamIO
 Central context representing the native peer to the Java CAStreamInputStream object. More...
 

Functions

void throwUnsupportedAudioFileExceptionIfError (JNIEnv *, int, const char *)
 Throws an UnsupportedAudioFileException exception.
 
void throwIOExceptionIfError (JNIEnv *, int, const char *)
 Throws an IOException.
 
void throwIllegalArgumentExceptionIfError (JNIEnv *, int, const char *)
 Throws an IllegalArgumentException.
 
void throwFileNotFoundExceptionIfError (JNIEnv *, int, const char *)
 Throws an IllegalArgumentException.
 
void ca_create_url_ref (JNIEnv *, jstring, CFURLRef &)
 Returns true if an error occurred.
 

Function Documentation

◆ ca_create_url_ref()

void ca_create_url_ref ( JNIEnv * env,
jstring path,
CFURLRef & urlRef )

Returns true if an error occurred.

Returns true if an error occurred.

Definition at line 101 of file CAUtils.cpp.

◆ throwFileNotFoundExceptionIfError()

void throwFileNotFoundExceptionIfError ( JNIEnv * env,
int err,
const char * message )

Throws an IllegalArgumentException.

Definition at line 90 of file CAUtils.cpp.

◆ throwIllegalArgumentExceptionIfError()

void throwIllegalArgumentExceptionIfError ( JNIEnv * env,
int err,
const char * message )

Throws an IllegalArgumentException.

Definition at line 73 of file CAUtils.cpp.

◆ throwIOExceptionIfError()

void throwIOExceptionIfError ( JNIEnv * env,
int err,
const char * message )

Throws an IOException.

Definition at line 56 of file CAUtils.cpp.

◆ throwUnsupportedAudioFileExceptionIfError()

void throwUnsupportedAudioFileExceptionIfError ( JNIEnv * env,
int err,
const char * message )

Throws an UnsupportedAudioFileException exception.

Definition at line 39 of file CAUtils.cpp.