Developing multimedia applications with  JMF         T.G.Venkatesh      
46
Configuring a Processor
( setting trackFormat)
public void config(){
       processor.setContentDescriptor( null );   // to use as player
       TrackControl track[] = processor.getTrackControls();
       AudioFormat af = new AudioFormat(AudioFormat.GSM);
                                                                                 
       for (int i = 0; i < track.length; i++)
       {     Format format = track[i].getFormat();
              if (  track[i] instanceof FormatControl &&
                    format instanceof  AudioFormat )
              {       Format setFormat =
                       ( (FormatControl)track[i] ).setFormat( af );            
           if ( setFormat  == null) { track[i].setEnabled(false);}
             }
     }
}