CASampledSP
Functions
CAUtils.cpp File Reference
#include "CAUtils.h"

Go to the source code of this file.

Functions

void throwUnsupportedAudioFileExceptionIfError (JNIEnv *env, int err, const char *message)
 Throws an UnsupportedAudioFileException exception. More...
 
void throwIOExceptionIfError (JNIEnv *env, int err, const char *message)
 Throws an IOException. More...
 
void throwIllegalArgumentExceptionIfError (JNIEnv *env, int err, const char *message)
 Throws an IllegalArgumentException. More...
 
void throwFileNotFoundExceptionIfError (JNIEnv *env, int err, const char *message)
 Throws an IllegalArgumentException. More...
 
void ca_create_url_ref (JNIEnv *env, jstring path, CFURLRef &urlRef)
 Creates a CFURLRef from the given path. More...
 

Function Documentation

◆ ca_create_url_ref()

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

Creates a CFURLRef from the given path.

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.