From cf7c2cb016bef8ebf5e96d1e5dcf6bf763bfe2de Mon Sep 17 00:00:00 2001 From: Ulrich Eckhardt Date: Thu, 22 Feb 2018 18:55:43 +0100 Subject: Add audio bitrate to new service interface --- radio.c | 1 + service.h | 1 + 2 files changed, 2 insertions(+) diff --git a/radio.c b/radio.c index 521c2bf..58d086d 100644 --- a/radio.c +++ b/radio.c @@ -648,6 +648,7 @@ bool cPluginRadio::Service(const char *Id, void *Data) data->rds_title = conf.Convert(RTP_Title); data->rds_artist = conf.Convert(RTP_Artist); data->title_start = RTP_Starttime; + data->bitrate = radioAudio->bitrate; } return true; } diff --git a/service.h b/service.h index 0fa612c..7275c4e 100644 --- a/service.h +++ b/service.h @@ -29,6 +29,7 @@ struct RadioTextService_v1_1 { std::string rds_title; std::string rds_artist; time_t title_start; + std::string bitrate; }; #define RADIO_TEXT_SERVICE0 "RadioTextService-v1.0" -- cgit v1.2.3