⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 org_tritonus_lowlevel_alsa_alsapcmhwparamsformatmask.c

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 C
字号:
/* *	org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask.c *//* *  Copyright (c) 1999 - 2001 by Matthias Pfisterer <Matthias.Pfisterer@gmx.de> * *   This program is free software; you can redistribute it and/or modify *   it under the terms of the GNU Library General Public License as published *   by the Free Software Foundation; either version 2 of the License, or *   (at your option) any later version. * *   This program is distributed in the hope that it will be useful, *   but WITHOUT ANY WARRANTY; without even the implied warranty of *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *   GNU Library General Public License for more details. * *   You should have received a copy of the GNU Library General Public *   License along with this program; if not, write to the Free Software *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#include "common.h"#include "org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask.h"HandleFieldHandler(snd_pcm_format_mask_t*)snd_pcm_format_mask_t*getFormatMaskNativeHandle(JNIEnv *env, jobject obj){	return getHandle(env, obj);}/* * Class:     org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask * Method:    malloc * Signature: ()I */JNIEXPORT jint JNICALLJava_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_malloc(JNIEnv *env, jobject obj){	snd_pcm_format_mask_t*	handle;	int			nReturn;	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_malloc(): begin\n"); }	nReturn = snd_pcm_format_mask_malloc(&handle);	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_malloc(): handle: %p\n", handle); }	setHandle(env, obj, handle);	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_malloc(): end\n"); }	return nReturn;}/* * Class:     org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask * Method:    free * Signature: ()V */JNIEXPORT void JNICALLJava_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_free(JNIEnv *env, jobject obj){	snd_pcm_format_mask_t*	handle;	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_free(): begin\n"); }	handle = getHandle(env, obj);	snd_pcm_format_mask_free(handle);	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_free(): end\n"); }}//-------------/* * Class:     org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask * Method:    none * Signature: ()V */JNIEXPORT void JNICALLJava_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_none(JNIEnv *env, jobject obj){	snd_pcm_format_mask_t*	handle;	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_none(): begin\n"); }	handle = getHandle(env, obj);	snd_pcm_format_mask_none(handle);	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_none(): end\n"); }}/* * Class:     org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask * Method:    any * Signature: ()V */JNIEXPORT void JNICALLJava_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_any(JNIEnv *env, jobject obj){	snd_pcm_format_mask_t*	handle;	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_any(): begin\n"); }	handle = getHandle(env, obj);	snd_pcm_format_mask_any(handle);	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_any(): end\n"); }}/* * Class:     org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask * Method:    test * Signature: (I)Z */JNIEXPORT jboolean JNICALLJava_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_test(JNIEnv *env, jobject obj, jint nFormat){	snd_pcm_format_mask_t*	handle;	int			nReturn;	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_test(): begin\n"); }	handle = getHandle(env, obj);	nReturn = snd_pcm_format_mask_test(handle, (snd_pcm_format_t) nFormat);	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_test(): end\n"); }	return (jboolean) nReturn;}/* * Class:     org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask * Method:    set * Signature: (I)V */JNIEXPORT void JNICALLJava_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_set(JNIEnv *env, jobject obj, jint nFormat){	snd_pcm_format_mask_t*	handle;	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_set(): begin\n"); }	handle = getHandle(env, obj);	snd_pcm_format_mask_set(handle, (snd_pcm_format_t) nFormat);	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_set(): end\n"); }}/* * Class:     org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask * Method:    reset * Signature: (I)V */JNIEXPORT void JNICALLJava_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_reset(JNIEnv *env, jobject obj, jint nFormat){	snd_pcm_format_mask_t*	handle;	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_reset(): begin\n"); }	handle = getHandle(env, obj);	snd_pcm_format_mask_reset(handle, (snd_pcm_format_t) nFormat);	if (debug_flag) { fprintf(debug_file, "Java_org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask_reset(): end\n"); }}/*** org_tritonus_lowlevel_alsa_AlsaPcmHWParamsFormatMask.c ***/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -