]> git.sesse.net Git - vlc/blob - bindings/java/org/videolan/jvlc/Audio.java
45b1f40deae5a9b80622101e4a62f6aebd139195
[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 int      _getTrack();
8         private native void     _setTrack(int track);
9         private native int          _getChannel();
10         private native void     _setChannel(int channel);
11         private native boolean  _getMute();
12     private native void         _setMute( boolean value );
13     private native void         _toggleMute();
14     private native int          _getVolume();
15     private native void         _setVolume( int volume );
16     
17     public Audio( long instance ) {
18         this.libvlcInstance = instance;
19     }
20     
21         public int getTrack() throws VLCException {
22                 return _getTrack();
23         }
24
25         public void setTrack( int track ) throws VLCException {
26                 _setTrack(track);
27         }
28
29         public int getChannel() throws VLCException {
30                 return _getChannel();
31         }
32
33         public void setChannel( int channel ) throws VLCException {
34                 _setChannel(channel);
35         }    
36     
37     public boolean getMute() throws VLCException {
38         return _getMute();
39     }
40
41     public void setMute( boolean value ) throws VLCException {
42         _setMute( value );
43         
44     }
45     
46     public void toggleMute() throws VLCException {
47         _toggleMute();
48     }
49
50     public int getVolume() throws VLCException {
51         return _getVolume();        
52     }
53
54     public void setVolume(int volume) throws VLCException {
55         _setVolume( volume );
56         
57     }
58     
59         public long getInstance() {
60                 return libvlcInstance;
61         }
62 }