de.flaxen.jdvdslideshow.commands
Class Audio
java.lang.Object
de.flaxen.jdvdslideshow.commands.Command
de.flaxen.jdvdslideshow.commands.FileCommand
de.flaxen.jdvdslideshow.commands.Audio
- All Implemented Interfaces:
- java.lang.Cloneable
public class Audio
- extends FileCommand
Audio tracks can be inter-mixed with the video. If an audio track is placed
between two different images/effects, that audio track will begin playing at
the start of the second image/effect. When placing audio, use the syntax:
audiofile:track:effect1:effect1_params:effect2:effect2_params
The audiofile can be a .ogg, .mp3, or .wav file. Track is the resulting dvd
audio track.
Audio Effects are audio effects where you can specify things like fadein and
fadeout for the audio. Example:
audiofile:1:fadein:3:fadeout:2
(*NEW in 0.7.3) If you want to concatenate two audio files, just place them
one right after another in the .txt file.
- Author:
- develop
|
Field Summary |
static java.lang.String[] |
extentions
|
| Fields inherited from class de.flaxen.jdvdslideshow.commands.Command |
name |
|
Constructor Summary |
Audio()
Creates a new instance of AudioFile |
Audio(java.lang.String file)
|
| Methods inherited from class de.flaxen.jdvdslideshow.commands.Command |
clone, createCommand, generate, getAudioCommand, getAudioTimeIndex, getInfo, getListIndex, getName, getTimeIndex, hasAudio, hasExtention, hasExtention, parse, setAudioCommand, setListIndex, setTimeIndex |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
extentions
public static java.lang.String[] extentions
Audio
public Audio(java.lang.String file)
Audio
public Audio()
- Creates a new instance of AudioFile
isAudioCommand
public static boolean isAudioCommand(java.lang.String lineLowerCase)
getTrack
public int getTrack()
- Returns:
setTrack
public void setTrack(int track)
- Parameters:
track -
getFadein
public int getFadein()
- Returns:
setFadein
public void setFadein(int fadein)
- Parameters:
fadein -
getFadeout
public int getFadeout()
- Returns:
setFadeout
public void setFadeout(int fadeout)
- Parameters:
fadeout -
setName
public void setName(java.lang.String name)
- Overrides:
setName in class Command
getSize
public float getSize()
getCommandPanel
public CommandEditorJPanel getCommandPanel()
- Overrides:
getCommandPanel in class Command
parse
protected void parse(java.lang.String[] elements)
- Overrides:
parse in class Command
generate
protected void generate(java.lang.StringBuilder builder)
- Overrides:
generate in class Command
copyTo
public void copyTo(Command command)
- Overrides:
copyTo in class Command
play
public void play()
play
public void play(float length)
play
public void play(float offset,
float length)