Package com.jalios.util
Class AudioUtil
java.lang.Object
com.jalios.util.AudioUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClipReturns the clip of the given audio file.static longgetDuration(File file) Returns the duration of the audio file in millisecond.getMetaData(File file) Returns the meta data of the given audio file.static void
-
Constructor Details
-
AudioUtil
public AudioUtil()
-
-
Method Details
-
getMetaData
Returns the meta data of the given audio file.- Parameters:
file- the file to process- Returns:
- a map of metadata
- Since:
- jcms-5.5.0
-
getDuration
Returns the duration of the audio file in millisecond. From http://javaalmanac.com/egs/javax.sound.sampled/Duration.html- Parameters:
file- the file to process- Returns:
- the duration in millisecond.
- Since:
- jcms-5.5.0
-
getClip
Returns the clip of the given audio file. Cut and Paste from http://javaalmanac.com/egs/javax.sound.sampled/Load.html- Parameters:
file- the file to process- Returns:
- the clip of the given audio file
- Since:
- jcms-5.5.0
-
main
- Throws:
Exception
-