Just curious if there is a way for this command to return the number of channels instead of "Mono", "Stereo" etc...
Library_GetFileProperty (url, Plugin.FilePropertyType.Channels)
I noticed the VB code for the UPnP plugin has some negative operators for this declaration
Private Shared ReadOnly queryFields() As Plugin.MetaDataType = DirectCast(New Integer() {MetaDataType.Url, MetaDataType.Category, MetaDataType.Artist, MetaDataType.ArtistPeople, MetaDataType.AlbumArtist, MetaDataType.Composer, MetaDataType.Conductor, MetaDataType.TrackTitle, MetaDataType.Album, MetaDataType.TrackNo, MetaDataType.DiscNo, MetaDataType.DiscCount, MetaDataType.YearOnly, MetaDataType.Genre, MetaDataType.Publisher, MetaDataType.Rating, -MetaDataType.Duration, -MetaDataType.FileSize, -MetaDataType.Bitrate, -MetaDataType.SampleRate, -MetaDataType.Channels, -MetaDataType.DateAdded, -MetaDataType.PlayCount, -MetaDataType.DateLastPlayed, -MetaDataType.ReplayGainTrack, 0}, Plugin.MetaDataType())
I had a bit of trouble converting this particular declaration to C#. I got it sorted so everything works but I couldn't implement those negative operators and it made me wonder if that was a way for certain Metadata to return alternate values. Like the Channels property and SampleRate, It returns values like "44.1 khz". For the UPnP plugin to work correctly I had to convert the results to a suitable format. eg) "Stereo" to "2", "44.1 khz" to "441000".
Am I on the right track or did they previously return different formats? As they are now, SampleRate would not have parsed to an Int which would have triggered an encode every time in the UPnP plugin.