annotate src/portaudio_20140130/bindings/java/c/src/jpa_tools.h @ 58:eab3b14ddc95

Further win32 build updates
author Chris Cannam
date Mon, 09 Jan 2017 13:51:38 +0000
parents 7ddb4fc30dac
children
rev   line source
Chris@39 1 /*
Chris@39 2 * Portable Audio I/O Library
Chris@39 3 * Java Binding for PortAudio
Chris@39 4 *
Chris@39 5 * Based on the Open Source API proposed by Ross Bencina
Chris@39 6 * Copyright (c) 2008 Ross Bencina
Chris@39 7 *
Chris@39 8 * Permission is hereby granted, free of charge, to any person obtaining
Chris@39 9 * a copy of this software and associated documentation files
Chris@39 10 * (the "Software"), to deal in the Software without restriction,
Chris@39 11 * including without limitation the rights to use, copy, modify, merge,
Chris@39 12 * publish, distribute, sublicense, and/or sell copies of the Software,
Chris@39 13 * and to permit persons to whom the Software is furnished to do so,
Chris@39 14 * subject to the following conditions:
Chris@39 15 *
Chris@39 16 * The above copyright notice and this permission notice shall be
Chris@39 17 * included in all copies or substantial portions of the Software.
Chris@39 18 *
Chris@39 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Chris@39 20 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Chris@39 21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Chris@39 22 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
Chris@39 23 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Chris@39 24 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Chris@39 25 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Chris@39 26 */
Chris@39 27
Chris@39 28 /*
Chris@39 29 * The text above constitutes the entire PortAudio license; however,
Chris@39 30 * the PortAudio community also makes the following non-binding requests:
Chris@39 31 *
Chris@39 32 * Any person wishing to distribute modifications to the Software is
Chris@39 33 * requested to send the modifications to the original developer so that
Chris@39 34 * they can be incorporated into the canonical version. It is also
Chris@39 35 * requested that these non-binding requests be included along with the
Chris@39 36 * license above.
Chris@39 37 */
Chris@39 38
Chris@39 39 #include "com_portaudio_PortAudio.h"
Chris@39 40 #include "portaudio.h"
Chris@39 41
Chris@39 42 #ifndef JPA_TOOLS_H
Chris@39 43 #define JPA_TOOLS_H
Chris@39 44
Chris@39 45 jint jpa_GetIntField( JNIEnv *env, jclass cls, jobject obj, const char *fieldName );
Chris@39 46 void jpa_SetIntField( JNIEnv *env, jclass cls, jobject obj, const char *fieldName, jint value );
Chris@39 47
Chris@39 48 jlong jpa_GetLongField( JNIEnv *env, jclass cls, jobject obj, const char *fieldName );
Chris@39 49 void jpa_SetLongField( JNIEnv *env, jclass cls, jobject obj, const char *fieldName, jlong value );
Chris@39 50
Chris@39 51 jdouble jpa_GetDoubleField( JNIEnv *env, jclass cls, jobject obj, const char *fieldName );
Chris@39 52 void jpa_SetDoubleField( JNIEnv *env, jclass cls, jobject obj, const char *fieldName, jdouble value );
Chris@39 53
Chris@39 54 void jpa_SetStringField( JNIEnv *env, jclass cls, jobject obj, const char *fieldName, const char *value );
Chris@39 55 PaStreamParameters *jpa_FillStreamParameters( JNIEnv *env, jobject jstreamParam, PaStreamParameters *myParams );
Chris@39 56
Chris@39 57 jint jpa_CheckError( JNIEnv *env, PaError err );
Chris@39 58 jint jpa_ThrowError( JNIEnv *env, const char *message );
Chris@39 59
Chris@39 60 PaStream *jpa_GetStreamPointer( JNIEnv *env, jobject blockingStream );
Chris@39 61
Chris@39 62 #endif /* JPA_TOOLS_H */