* Add a listener for frequency-changed messages.
*
* @param listener The listener to be called when the frequency changes
*/
public void connect(final FREQUENCY_CHANGED listener) {
element.connect(FREQUENCY_CHANGED.class, listener, new GstCallback() {
@SuppressWarnings("unused")
public boolean callback(Pointer tuner, Pointer channel, long frequency) {
listener.frequencyChanged(Tuner.this, channelFor(channel, false), frequency);
return true;
}