1 /*****************************************************************************
2 * AudioIntf.java: Audio methods interface
3 *****************************************************************************
5 * Copyright (C) 1998-2006 the VideoLAN team
7 * Author: Filippo Carone <filippo@carone.org>
9 * Created on 28-feb-2006
14 * This program is free software; you can redistribute it
15 * and/or modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2 of the
17 * License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
24 * You should have received a copy of the GNU General Public
25 * License along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
30 package org.videolan.jvlc;
32 public interface AudioIntf {
36 * Constant for left channel audio
38 final int LEFT_CHANNEL = 3;
41 * Constant for right channel audio
43 final int RIGHT_CHANNEL = 4;
46 * Constant for reverse channel audio
48 final int REVERSE_CHANNEL = 2;
50 * Constant for stereo channel audio
52 final int STEREO_CHANNEL = 1;
54 * Constant for dolby channel audio
56 final int DOLBY_CHANNEL = 5;
60 * @throws VLCException
62 int getTrack() throws VLCException;
66 * @throws VLCException
68 void setTrack(int track) throws VLCException;
72 * @throws VLCException
74 int getChannel() throws VLCException;
78 * @throws VLCException
80 void setChannel(int channel) throws VLCException;
84 * @return True if input is currently muted.
85 * @throws VLCException
87 boolean getMute() throws VLCException;
90 * @param value If true, then the input is muted.
91 * @throws VLCException
93 void setMute(boolean value) throws VLCException;
97 * @throws VLCException
99 void toggleMute() throws VLCException;
102 * @return The volume level
103 * @throws VLCException
105 int getVolume() throws VLCException;
108 * @param volume The volume level (0-200) to set.
109 * @throws VLCException
111 void setVolume(int volume) throws VLCException;