CASampledSP
Data Structures | Macros | Functions
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...
 

Macros

#define BUFFER_SIZE   32 * 1024
 

Functions

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

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   32 * 1024

Definition at line 44 of file CAUtils.h.

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 *  ,
int  ,
const char *   
)

Throws an IllegalArgumentException.

Definition at line 90 of file CAUtils.cpp.

◆ throwIllegalArgumentExceptionIfError()

void throwIllegalArgumentExceptionIfError ( JNIEnv *  ,
int  ,
const char *   
)

Throws an IllegalArgumentException.

Definition at line 73 of file CAUtils.cpp.

◆ throwIOExceptionIfError()

void throwIOExceptionIfError ( JNIEnv *  ,
int  ,
const char *   
)

Throws an IOException.

Definition at line 56 of file CAUtils.cpp.

◆ throwUnsupportedAudioFileExceptionIfError()

void throwUnsupportedAudioFileExceptionIfError ( JNIEnv *  ,
int  ,
const char *   
)

Throws an UnsupportedAudioFileException exception.

Definition at line 39 of file CAUtils.cpp.