1 /*****************************************************************************
2 * audio-jni.cc: JNI native audio functions for VLC Java Bindings
3 *****************************************************************************
4 * Copyright (C) 1998-2006 the VideoLAN team
6 * Authors: Filippo Carone <filippo@carone.org>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
29 #include <vlc/libvlc.h>
31 /* JVLC internal imports, generated by gcjh */
32 #include "../includes/Audio.h"
35 JNIEXPORT jboolean JNICALL Java_org_videolan_jvlc_Audio__1getMute (JNIEnv *env, jobject _this)
40 res = (jboolean) libvlc_audio_get_mute( ( libvlc_instance_t * ) instance, exception );
48 JNIEXPORT void JNICALL Java_org_videolan_jvlc_Audio__1setMute (JNIEnv *env, jobject _this, jboolean value)
52 libvlc_audio_set_mute( ( libvlc_instance_t * ) instance, value, exception );
57 JNIEXPORT void JNICALL Java_org_videolan_jvlc_Audio__1toggleMute (JNIEnv *env, jobject _this)
61 libvlc_audio_get_mute( ( libvlc_instance_t * ) instance, exception );
66 JNIEXPORT jint JNICALL Java_org_videolan_jvlc_Audio__1getVolume (JNIEnv *env, jobject _this)
71 res = libvlc_audio_get_volume( ( libvlc_instance_t * ) instance, exception );
78 JNIEXPORT void JNICALL Java_org_videolan_jvlc_Audio__1setVolume (JNIEnv *env, jobject _this, jint volume)
82 libvlc_audio_set_volume( ( libvlc_instance_t * ) instance, volume, exception );