Retrieving Ringtone Parameters
You can retrieve some ringtone parameters after you successively open it. Use methods listed below.
public int getChannelsCount();
This method returns the number of channels of the ringtone
public int getPolyphonyLevel();
Get the maximal number of notes played simultaneously in the ringtone (ringtone polyphony)
public int getDuration();
Get song duration in milliseconds
public int getBitsPerSample();
Get number of bits per sample
public int getSamplingRate();
Get sampling rate
public double getBitrate();
Get the bitrate of the ringtone in kbps. Applicable to MP3, AMR NB, AMR WB and AAC only. Use right after opening the ringtone.