net.luniks.linux.jv4linfo
Class VideoAudio

java.lang.Object
  extended bynet.luniks.linux.jv4linfo.VideoAudio

public class VideoAudio
extends java.lang.Object

Class to hold information about an audio channel of a v4l device. Almost all fields and comments are taken from videodev.h

Author:
Torsten Römer, www.luniks.net

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

VIDEO_AUDIO_MUTE

public static final int VIDEO_AUDIO_MUTE
The audio is muted

See Also:
Constant Field Values

VIDEO_AUDIO_MUTABLE

public static final int VIDEO_AUDIO_MUTABLE
Audio muting is supported

See Also:
Constant Field Values

VIDEO_AUDIO_VOLUME

public static final int VIDEO_AUDIO_VOLUME
The volume is controllable

See Also:
Constant Field Values

VIDEO_AUDIO_BASS

public static final int VIDEO_AUDIO_BASS
The bass is controllable

See Also:
Constant Field Values

VIDEO_AUDIO_TREBLE

public static final int VIDEO_AUDIO_TREBLE
The treble is controllable

See Also:
Constant Field Values

VIDEO_AUDIO_BALANCE

public static final int VIDEO_AUDIO_BALANCE
The balance is controllable

See Also:
Constant Field Values

VIDEO_SOUND_MONO

public static final int VIDEO_SOUND_MONO
Mono signal

See Also:
Constant Field Values

VIDEO_SOUND_STEREO

public static final int VIDEO_SOUND_STEREO
Stereo signal (NICAM for TV)

See Also:
Constant Field Values

VIDEO_SOUND_LANG1

public static final int VIDEO_SOUND_LANG1
European TV alternate language 1

See Also:
Constant Field Values

VIDEO_SOUND_LANG2

public static final int VIDEO_SOUND_LANG2
European TV alternate language 2

See Also:
Constant Field Values

audio

private int audio

volume

private int volume

bass

private int bass

treble

private int treble

flags

private int flags

name

private java.lang.String name

mode

private int mode

balance

private int balance

step

private int step
Constructor Detail

VideoAudio

public VideoAudio()
Method Detail

getAudio

public int getAudio()
Returns the index of the audio channel


getVolume

public int getVolume()
Returns the volume level


getBass

public int getBass()
Returns the bass level


getTreble

public int getTreble()
Returns the treble level


getFlags

public int getFlags()
Returns the flags describing the audio channel


getName

public java.lang.String getName()
Returns the canonical name for the audio input


getMode

public int getMode()
Returns the mode the audio input is in


getBalance

public int getBalance()
Returns the balance setting


getStep

public int getStep()
Returns the actual step used by the hardware


setAudio

public void setAudio(int audio)
Sets the index of the audio channel


setVolume

public void setVolume(int volume)
Sets the volume level


setBass

public void setBass(int bass)
Sets the bass level


setTreble

public void setTreble(int treble)
Sets the treble level


setFlags

public void setFlags(int flags)
Sets the flags describing the audio channel


setMode

public void setMode(int mode)
Sets the mode the audio input is in


setBalance

public void setBalance(int balance)
Sets the balance setting


setMuted

public void setMuted(boolean mute)
Sets muted true/false


isMuted

public boolean isMuted()
Returns true if the audio channel is muted


isMutable

public boolean isMutable()
Returns true if the audio channel is mutable


isVolumeSettable

public boolean isVolumeSettable()
Returns true if the volume is settable


isBassSettable

public boolean isBassSettable()
Returns true if the bass is settable


isTrebleSettable

public boolean isTrebleSettable()
Returns true if the treble is settable


isBalanceSettable

public boolean isBalanceSettable()
Returns true if the balance is settable


getModeName

public java.lang.String getModeName()
Returns the name of the mode the audio input is in


getAudmodes

public static VideoAudio.Audmode[] getAudmodes()
Returns the audio modes known by v4l


toString

public java.lang.String toString()
String representation of the audio info



Copyright © 2004 Torsten Römer, dode@luniks.net