Modified to JPortAudio to support builds on Macintosh.
This commit is contained in:
parent
373c29f7b0
commit
ac4bb571cb
4 changed files with 36 additions and 3 deletions
|
|
@ -1,5 +1,10 @@
|
|||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#if defined(__APPLE__)
|
||||
#include <JavaVM/jni.h>
|
||||
#else
|
||||
#include <jni.h>
|
||||
#endif
|
||||
|
||||
/* Header for class com_portaudio_BlockingStream */
|
||||
|
||||
#ifndef _Included_com_portaudio_BlockingStream
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
#include <JavaVM/jni.h>
|
||||
/* Header for class com_portaudio_PortAudio */
|
||||
|
||||
#ifndef _Included_com_portaudio_PortAudio
|
||||
|
|
|
|||
|
|
@ -178,8 +178,12 @@ jint jpa_ThrowError( JNIEnv *env, const char *message )
|
|||
// Throw an exception on error.
|
||||
jint jpa_CheckError( JNIEnv *env, PaError err )
|
||||
{
|
||||
if( err < 0 )
|
||||
if( err == -1 )
|
||||
{
|
||||
return jpa_ThrowError( env, "-1, possibly no available default device" );
|
||||
}
|
||||
else if( err < 0 )
|
||||
{
|
||||
if( err == paUnanticipatedHostError )
|
||||
{
|
||||
const PaHostErrorInfo *hostErrorInfo = Pa_GetLastHostErrorInfo();
|
||||
|
|
|
|||
Loading…
Reference in a new issue