|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.luniks.linux.jv4linfo.VideoAudio
Class to hold information about an audio channel of a v4l device.
Almost all fields and comments are taken from videodev.h
Nested Class Summary | |
static class |
VideoAudio.Audmode
|
Field Summary | |
private int |
audio
|
private int |
balance
|
private int |
bass
|
private int |
flags
|
private int |
mode
|
private java.lang.String |
name
|
private int |
step
|
private int |
treble
|
static int |
VIDEO_AUDIO_BALANCE
The balance is controllable |
static int |
VIDEO_AUDIO_BASS
The bass is controllable |
static int |
VIDEO_AUDIO_MUTABLE
Audio muting is supported |
static int |
VIDEO_AUDIO_MUTE
The audio is muted |
static int |
VIDEO_AUDIO_TREBLE
The treble is controllable |
static int |
VIDEO_AUDIO_VOLUME
The volume is controllable |
static int |
VIDEO_SOUND_LANG1
European TV alternate language 1 |
static int |
VIDEO_SOUND_LANG2
European TV alternate language 2 |
static int |
VIDEO_SOUND_MONO
Mono signal |
static int |
VIDEO_SOUND_STEREO
Stereo signal (NICAM for TV) |
private int |
volume
|
Constructor Summary | |
VideoAudio()
|
Method Summary | |
int |
getAudio()
Returns the index of the audio channel |
static VideoAudio.Audmode[] |
getAudmodes()
Returns the audio modes known by v4l |
int |
getBalance()
Returns the balance setting |
int |
getBass()
Returns the bass level |
int |
getFlags()
Returns the flags describing the audio channel |
int |
getMode()
Returns the mode the audio input is in |
java.lang.String |
getModeName()
Returns the name of the mode the audio input is in |
java.lang.String |
getName()
Returns the canonical name for the audio input |
int |
getStep()
Returns the actual step used by the hardware |
int |
getTreble()
Returns the treble level |
int |
getVolume()
Returns the volume level |
boolean |
isBalanceSettable()
Returns true if the balance is settable |
boolean |
isBassSettable()
Returns true if the bass is settable |
boolean |
isMutable()
Returns true if the audio channel is mutable |
boolean |
isMuted()
Returns true if the audio channel is muted |
boolean |
isTrebleSettable()
Returns true if the treble is settable |
boolean |
isVolumeSettable()
Returns true if the volume is settable |
void |
setAudio(int audio)
Sets the index of the audio channel |
void |
setBalance(int balance)
Sets the balance setting |
void |
setBass(int bass)
Sets the bass level |
void |
setFlags(int flags)
Sets the flags describing the audio channel |
void |
setMode(int mode)
Sets the mode the audio input is in |
void |
setMuted(boolean mute)
Sets muted true/false |
void |
setTreble(int treble)
Sets the treble level |
void |
setVolume(int volume)
Sets the volume level |
java.lang.String |
toString()
String representation of the audio info |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int VIDEO_AUDIO_MUTE
public static final int VIDEO_AUDIO_MUTABLE
public static final int VIDEO_AUDIO_VOLUME
public static final int VIDEO_AUDIO_BASS
public static final int VIDEO_AUDIO_TREBLE
public static final int VIDEO_AUDIO_BALANCE
public static final int VIDEO_SOUND_MONO
public static final int VIDEO_SOUND_STEREO
public static final int VIDEO_SOUND_LANG1
public static final int VIDEO_SOUND_LANG2
private int audio
private int volume
private int bass
private int treble
private int flags
private java.lang.String name
private int mode
private int balance
private int step
Constructor Detail |
public VideoAudio()
Method Detail |
public int getAudio()
public int getVolume()
public int getBass()
public int getTreble()
public int getFlags()
public java.lang.String getName()
public int getMode()
public int getBalance()
public int getStep()
public void setAudio(int audio)
public void setVolume(int volume)
public void setBass(int bass)
public void setTreble(int treble)
public void setFlags(int flags)
public void setMode(int mode)
public void setBalance(int balance)
public void setMuted(boolean mute)
public boolean isMuted()
public boolean isMutable()
public boolean isVolumeSettable()
public boolean isBassSettable()
public boolean isTrebleSettable()
public boolean isBalanceSettable()
public java.lang.String getModeName()
public static VideoAudio.Audmode[] getAudmodes()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |