|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcami.jmootcher.JMootcher.SoundFile
public class JMootcher.SoundFile
An inner class, representating a freesound-sample
Field Summary |
---|
Fields inherited from interface cami.jmootcher.JMootcherConstants |
---|
AIFF, BUFFER_SIZE, FILE_URL, FLAC, HOME_URL, LOGIN_URL, MP3, OGG, SAMPLE_DATE_FORMAT, WAV, XML_SEARCH_URL, XML_SIMILAR_URL, XML_URL |
Constructor Summary | |
---|---|
JMootcher.SoundFile(JMootcher mootcher,
int ID)
|
|
JMootcher.SoundFile(JMootcher mootcher,
java.lang.String ID)
|
Method Summary | |
---|---|
javax.sound.sampled.Clip |
getAudioClip()
|
int |
getBitDepth()
returns the bitDepth of the sample, usually 16 |
int |
getBitRate()
returns the resolution of the sample |
int |
getChannels()
returns the number of channels, usually 1 or 2 |
java.util.Date |
getDate()
returns the creation-date of this sample |
java.lang.String |
getDescription()
returns the freesound description of this file |
JMootcher.SoundFile[] |
getDissimilarFiles()
returns an array containig disimilar soundfiles, for further information see |
float |
getDuration()
returns the duration in seconds of the sample |
java.lang.String |
getExtension()
returns the fileextension |
int |
getFileSize()
returns the filesize in bytes |
int |
getFileType()
Returns an internal representation of the soundTypes |
java.net.URL |
getFileURL()
|
int |
getID()
Returns the freesound id of this sample |
java.io.InputStream |
getInputStream()
returns an InputStream pointing to the given file, or
null if the File doesnt exist, the InputStream points on the web |
java.lang.String[] |
getKeyWords()
returns the freesound keywords for this sample |
float |
getLatitude()
Returns the altitude of a geotagged Sample, null if not geotagged |
float |
getLongitude()
return the logitude of geotagged sample, or null |
JMootcher |
getMootcher()
returns the assigned jMootcher controller, which handles all HTTP-requests |
java.lang.String |
getOriginalFileName()
returns the sample's original filename |
java.io.File |
getPreview()
|
java.net.URL |
getPreviewImageURL()
returns the URL of a preview image, frequency is colorcoded, imageFormat is png |
java.lang.String |
getPreviewImageURLString()
|
java.io.InputStream |
getPreviewInputStream()
returns an InputStream pointing to the preview mp3, if the File doesnt exists a null is returned |
java.net.URL |
getPreviewURL()
returns the URL to the prewiev soundFile, which is accessiblel without an account, for the full sample a freesound account is required. |
java.lang.String |
getPreviewURLString()
|
java.io.File |
getSample()
|
int |
getSampleRate()
returns the sample rate in [Hz] |
JMootcher.SoundFile[] |
getSimilarFiles()
returns an array containig similar soundfiles, for further information see |
int |
getUserID()
returns the user-id of the creater of this sample |
boolean |
isGeoTagged()
returns if the sample has been geotagge ( an altidude and logitude assigned) |
void |
loop(int numberOfLoops)
|
void |
play()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMootcher.SoundFile(JMootcher mootcher, java.lang.String ID) throws java.lang.Exception
java.lang.Exception
public JMootcher.SoundFile(JMootcher mootcher, int ID) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public int getID()
public int getFileType()
JMootcherConstants
public float getLatitude()
getLongitude
,
isGeoTagged
public float getLongitude()
getAltitude
,
isGeoTagged
public boolean isGeoTagged()
getAltitude
,
getLongitude
public int getBitDepth()
public int getBitRate()
public int getChannels()
public java.lang.String getDescription()
public float getDuration()
public java.lang.String getExtension()
getFileType
public int getFileSize()
public java.net.URL getFileURL()
public java.lang.String[] getKeyWords()
public java.util.Date getDate()
public JMootcher getMootcher()
public java.lang.String getOriginalFileName()
public java.net.URL getPreviewURL()
public java.lang.String getPreviewURLString()
public java.net.URL getPreviewImageURL()
public java.lang.String getPreviewImageURLString()
public int getSampleRate()
public int getUserID()
public JMootcher.SoundFile[] getSimilarFiles()
getDissimilarFiles
public JMootcher.SoundFile[] getDissimilarFiles()
getSimilarFiles
public java.io.InputStream getInputStream()
InputStream
pointing to the given file, or
null
if the File doesnt exist, the InputStream points on the web
public java.io.InputStream getPreviewInputStream()
null
is returned
public java.io.File getSample()
public java.io.File getPreview()
public void play()
public void loop(int numberOfLoops)
public void stop()
public javax.sound.sampled.Clip getAudioClip()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |