Beispiel #1
0
 public static MusicInfo GetMusicInfoFromRow(object[] values, QueryColumn col_title, QueryColumn col_filename, QueryColumn col_path, QueryColumn col_dur, QueryColumn col_artists, QueryColumn col_albumartist, QueryColumn col_album, QueryColumn col_composer, QueryColumn col_size, QueryColumn col_bitrate, QueryColumn col_year)
 {
     var item = new MusicInfo();
     item.Title = GetString( values[col_title.Ordinal] );
     item.Filename= GetString(values[col_filename.Ordinal]);
     item.Path = GetString(values[col_path.Ordinal]);
     item.Duration = GetDecimal(values[col_dur.Ordinal]);
     item.Artist = GetStringArray(values[col_artists.Ordinal]);
     item.AlbumArtist= GetString(values[col_albumartist.Ordinal]);
     item.AlbumTitle= GetString(values[col_album.Ordinal]);
     item.Composer = GetStringArray(values[col_composer.Ordinal]);
     item.Size = GetDecimal(values[col_size.Ordinal]);
     item.Bitrate= GetInt32(values[col_bitrate.Ordinal]);
     item.Year= GetInt32(values[col_year.Ordinal]);
     return item;
 }