class RTPAudioFormat extends AudioFormat implements RTPFormat {

    public Collection<Attribute> encode() {
        Vector<Attribute> list = new Vector();
        list.add(sdpFactory.createAttribute("rtpmap", toSdp()));
        if (getEncoding().equalsIgnoreCase("telephone-event")) {
            list.add(sdpFactory.createAttribute("fmtp", payloadType + " 0-15"));
        } else if (getEncoding().equalsIgnoreCase("g729")) {
            list.add(sdpFactory.createAttribute("fmtp", payloadType + " annex=b"));
        }
        return list;
    }

    public  RTPAudioFormat(int payload, String encodingName);
    public  RTPAudioFormat(int payload, String encodingName, double sampleRate, int bits, int chans);
    public  RTPAudioFormat(int payload, String encodingName, double sampleRate, int bits, int chans, int endian, int signed);

}