CGUtils.toLiteral(o.getEncoding())
+ ")";
}
else if (c == ContentDescriptor.class)
{
final ContentDescriptor o = (ContentDescriptor) f;
return "new ContentDescriptor(" +
CGUtils.toLiteral(o.getEncoding())
+ ")";
}
else if (c == com.sun.media.format.WavAudioFormat.class)
{
// TODO: are the parameters correct?
final com.sun.media.format.WavAudioFormat o = (com.sun.media.format.WavAudioFormat) f;
return "new com.sun.media.format.WavAudioFormat(" +
CGUtils.toLiteral(o.getEncoding()) +
", " + CGUtils.toLiteral(o.getSampleRate()) +
//", -1" + // int arg TODO - what is this?
", " + CGUtils.toLiteral(o.getSampleSizeInBits()) +
", " + CGUtils.toLiteral(o.getChannels()) +
", " + CGUtils.toLiteral(o.getFrameSizeInBits()) +
", " + CGUtils.toLiteral(o.getAverageBytesPerSecond()) +
", " + CGUtils.toLiteral(o.getEndian()) +
", " + CGUtils.toLiteral(o.getSigned()) +
", " + CGUtils.toLiteral((float) o.getFrameRate()) +
", " + dataTypeToStr(o.getDataType()) +
", " + CGUtils.toLiteral(o.getCodecSpecificHeader())
+ ")";
}
else
{ throw new IllegalArgumentException("" + f.getClass());
//System.err.println(f.getClass());