Methods Summary |
---|
public boolean | checkFormat(javax.media.Format format)Checks the header of the compressed audio packet and detects any format
changes. Does not modify the buffer in any way.
TBD: how to select spesific output format
return true;
|
protected javax.media.Format | getInputFormat()
return inputFormat;
|
protected javax.media.Format[] | getMatchingOutputFormats(javax.media.Format in)
return new Format[0];
|
public java.lang.String | getName()
return PLUGIN_NAME;
|
protected javax.media.Format | getOutputFormat()
return outputFormat;
|
public javax.media.Format[] | getSupportedInputFormats()
return supportedInputFormats;
|
public javax.media.Format[] | getSupportedOutputFormats(javax.media.Format in)
// null input format
if (in==null) {
return defaultOutputFormats;
}
// mismatch input format
if ( !(in instanceof AudioFormat ) ||
(matches(in,supportedInputFormats)==null) ) {
return new Format[0];
}
// match input format
return getMatchingOutputFormats(in);
|
public javax.media.Format | setInputFormat(javax.media.Format format)
if ( !(format instanceof AudioFormat) ||
(null == matches(format, supportedInputFormats)) )
return null;
inputFormat = (AudioFormat)format;
return format;
|
public javax.media.Format | setOutputFormat(javax.media.Format format)
// This methods assumes setInputFormat has already been called.
if ( !(format instanceof AudioFormat) ||
(null == matches(format, getMatchingOutputFormats(inputFormat))) )
return null;
outputFormat = (AudioFormat)format;
return format;
|