summaryrefslogtreecommitdiffstats
path: root/stream/stream_radio.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_radio.c')
-rw-r--r--stream/stream_radio.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/stream/stream_radio.c b/stream/stream_radio.c
index ad8ad5a1fe..6010bf12f3 100644
--- a/stream/stream_radio.c
+++ b/stream/stream_radio.c
@@ -807,6 +807,21 @@ static int init_audio(radio_priv_t *priv)
for call from mplayer.c
--------------------------------------------------------------------------*/
/*****************************************************************
+ * \brief public wrapper for get_frequency
+ * \parameter frequency pointer to float, which will contain frequency in MHz
+ * \return 1 if success,0 - otherwise
+ */
+int radio_get_freq(struct stream_st *stream, float* frequency){
+ radio_priv_t* priv=(radio_priv_t*)stream->priv;
+
+ if (!frequency)
+ return 0;
+ if (get_frequency(priv,frequency)!=STREAM_OK){
+ return 0;
+ }
+ return 1;
+}
+/*****************************************************************
* \brief public wrapper for set_frequency
* \parameter frequency frequency in MHz
* \return 1 if success,0 - otherwise