STATE_sound_get_frequency
You can call this function only if the sound is playing. See STATE_sound_set_frequency()