Results 1 to 6 of 6

Thread: OMVisteonRadio Plugin updated with HD sub channel support.

  1. #1
    Newbie
    Join Date
    Sep 2008
    Posts
    6

    OMVisteonRadio Plugin updated with HD sub channel support.

    I used .net reflector to convert this plugin to C# and then finished support
    for HD sub channel tunning, HD meta data, and fixed the signal strength and
    some data type issues. (damn you VB).

    The attached file is for the 0.8 branch.
    Attached Files Attached Files

  2. #2
    Variable Bitrate heezer7's Avatar
    Join Date
    May 2004
    Location
    IL, USA
    Posts
    255
    Niice. Where I am I do not have any sub channels or HD Data avaliable so I kind of stubbed in parts of it and planned to finish it while visiting my parents at some point but never did. I started merging in your changes along with some that I have had outstanding. Is there a reason why you are keeping the sub channels in a list of their own outside of the full station list? I am just not at glance seeing why you have to keep it all separate in the subChanMediaInfo. Good call on the locks. This was my first plugin and I didn't quite grasp the amount of threading an multizone that was going on. It has expanded since .7 too.

    Oh I guess you are just storing all the sub channel's data of the current channel since it is all being sent all the time. Is it really slow to be received where that really seems to be needed?

    EX: Can't we shrink it down to just
    Code:
        Private Sub m_Radio_HDRadioEventHDArtist(ByVal Message As String) Handles m_Radio.HDRadioEventHDArtist
            If Message.StartsWith(m_Radio.CurrentHDSubChannel & "|") Then
                Dim Artist As String = Message.Substring(2)
                If Not m_CurrentMedia.Artist = Artist Then
                    m_CurrentMedia.Artist = Artist
                    RaiseMediaEvent(eFunction.Play, "")
                End If
            End If
        End Sub
    Last edited by heezer7; 05-20-2011 at 11:51 PM.

  3. #3
    Newbie
    Join Date
    Sep 2008
    Posts
    6
    Quote Originally Posted by heezer7 View Post
    Niice. Where I am I do not have any sub channels or HD Data avaliable so I kind of stubbed in parts of it and planned to finish it while visiting my parents at some point but never did. I started merging in your changes along with some that I have had outstanding. Is there a reason why you are keeping the sub channels in a list of their own outside of the full station list? I am just not at glance seeing why you have to keep it all separate in the subChanMediaInfo. Good call on the locks. This was my first plugin and I didn't quite grasp the amount of threading an multizone that was going on. It has expanded since .7 too.

    Oh I guess you are just storing all the sub channel's data of the current channel since it is all being sent all the time. Is it really slow to be received where that really seems to be needed?

    EX: Can't we shrink it down to just
    Code:
        Private Sub m_Radio_HDRadioEventHDArtist(ByVal Message As String) Handles m_Radio.HDRadioEventHDArtist
            If Message.StartsWith(m_Radio.CurrentHDSubChannel & "|") Then
                Dim Artist As String = Message.Substring(2)
                If Not m_CurrentMedia.Artist = Artist Then
                    m_CurrentMedia.Artist = Artist
                    RaiseMediaEvent(eFunction.Play, "")
                End If
            End If
        End Sub

    I think HDRadioComm.dll only fires the events when the data changes and some stations only change the data when the song changes, while others will send other data like the station
    phone number or advertisements every 30-45 seconds, So I decided to smooth out the
    inconsistency by collecting the data, it did take a LOT more code to get it working consistently
    that I had expected and the only real benefit is the artist and title is displayed immediately when
    a sub channel is selected.

    I originally had code similar to your suggestion and it works fine, I just think that the user
    experience is better when waiting for the HD stream lock (which can take 5-10 seconds)
    if the UI is giving feed back that something is happening.

  4. #4
    Maximum Bitrate jmullan99's Avatar
    Join Date
    Feb 2009
    Location
    Niagara Falls, Ontario
    Posts
    564
    I just progress!!
    Woo hoo!
    ZOTAC G43ITX-A-E 2.5ghz Core i3 2GB 160GB SSD
    Win7 Ultimate - OpenMobile - Directed HD - Wifi
    OMMaps + MS GPS Puck - WiFi via LTE Android phone
    2 Zones - Matrix Orbital LCD - Arduino - Build Pics

  5. #5
    Variable Bitrate Borte's Avatar
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    445
    Nice. heezer7 do you upload the changes as well?
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

  6. #6
    Variable Bitrate heezer7's Avatar
    Join Date
    May 2004
    Location
    IL, USA
    Posts
    255
    Yeah I have it all merged into my current version already except for the tracking all sub data part. I'll add that in tonight.

Similar Threads

  1. MJS Gadgets USB-IO-1 Plugin Updated (CF 3.5 only)
    By mitchjs in forum CF Plugins
    Replies: 0
    Last Post: 04-17-2011, 05:35 PM
  2. Updated Sirius Channel Logos & Lineup
    By x10 in forum RR Skins
    Replies: 8
    Last Post: 07-09-2008, 08:43 PM
  3. Updated Sirius Channel Logos & Lineup
    By x10 in forum Road Runner
    Replies: 4
    Last Post: 03-18-2008, 12:42 PM
  4. Updated XM channel graphics?
    By Erorus in forum Software & Software Development
    Replies: 0
    Last Post: 06-20-2006, 03:45 PM
  5. Updated XM Channel Art + Transparencies
    By cletus323 in forum FrodoPlayer
    Replies: 12
    Last Post: 04-13-2005, 02:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •