]> git.sesse.net Git - vlc/blob - bindings/java/org/videolan/jvlc/Audio.java
a0c53a65d98c9dcaefcbada5f7ce31078bb817ef
[vlc] / bindings / java / org / videolan / jvlc / Audio.java
1 package org.videolan.jvlc;
2
3 public class Audio implements AudioIntf {
4     
5         private long libvlcInstance;
6
7         private native boolean  _getMute();
8     private native void         _setMute( boolean value );
9     private native void         _toggleMute();
10     private native int          _getVolume();
11     private native void         _setVolume( int volume );
12     
13     public Audio( long instance ) {
14         this.libvlcInstance = instance;
15     }
16     
17     public boolean getMute() throws VLCException {
18         return _getMute();
19     }
20
21     public void setMute(boolean value) throws VLCException {
22         _setMute( value );
23         
24     }
25     
26     public void toggleMute() throws VLCException {
27         _toggleMute();
28     }
29
30     public int getVolume() throws VLCException {
31         return _getVolume();        
32     }
33
34     public void setVolume(int volume) throws VLCException {
35         _setVolume( volume );
36         
37     }
38     
39         public long getInstance() {
40                 return libvlcInstance;
41         }
42 }