1 package org.videolan.jvlc;
3 public class Audio implements AudioIntf {
5 private long libvlcInstance;
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 );
17 public Audio( long instance ) {
18 this.libvlcInstance = instance;
21 public int getTrack() throws VLCException {
25 public void setTrack( int track ) throws VLCException {
29 public int getChannel() throws VLCException {
33 public void setChannel( int channel ) throws VLCException {
37 public boolean getMute() throws VLCException {
41 public void setMute( boolean value ) throws VLCException {
46 public void toggleMute() throws VLCException {
50 public int getVolume() throws VLCException {
54 public void setVolume(int volume) throws VLCException {
59 public long getInstance() {
60 return libvlcInstance;