public Song(SongMetadata metadata)
        {
            filename = metadata.Filename;
            title = metadata.Title;
            artists = metadata.Artists;
            performers = metadata.Performers;
            album = metadata.Album;
            tracknumber = metadata.TrackNumber;
            year = metadata.Year;
            mtime = metadata.MTime;
            duration = metadata.Duration;
            gain = metadata.Gain;
            peak = metadata.Peak;

            if (filename == null)
            throw new ArgumentException ("Song:Constructor: metadata filename is null");
        }
Exemple #2
0
        public Song(SongMetadata metadata)
        {
            filename    = metadata.Filename;
            title       = metadata.Title;
            artists     = metadata.Artists;
            performers  = metadata.Performers;
            album       = metadata.Album;
            tracknumber = metadata.TrackNumber;
            year        = metadata.Year;
            mtime       = metadata.MTime;
            duration    = metadata.Duration;
            gain        = metadata.Gain;
            peak        = metadata.Peak;

            if (filename == null)
            {
                throw new ArgumentException("Song:Constructor: metadata filename is null");
            }
        }