Click here to Skip to main content
15,891,033 members
Articles / Desktop Programming / Windows Forms

BSEtunes

Rate me:
Please Sign up or sign in to vote.
4.67/5 (11 votes)
24 Apr 2010CPOL4 min read 64.7K   4.3K   58  
BSEtunes is a MySQL based, full manageable, networkable single or multiuser jukebox application
using System;

namespace BSE.Platten.Audio
{
	public enum MetaDataPropertyName
	{
		None,
		WMTrackNumber,
		Author,
		WMAlbumTitle,
		Title,
		Duration,
		WMGenre,
		WMYear
	}
	/// <summary>
    /// Summary description for AudioMetaData.
	/// </summary>
	/// <remarks></remarks>
	/// <copyright>Copyright � 2004 BSE</copyright>
	public class AudioMetaData
	{
		#region FieldsPrivate
		
		private string m_strFullName = string.Empty;
		private string m_strName = string.Empty;
		private string m_strExtension = string.Empty;
		private string m_strWMAlbumArtist = string.Empty;
		private string m_strWMAlbumTitle = string.Empty;
		private string m_strAudioFileUrl = string.Empty;
		private string m_strAuthor = string.Empty;
		private string m_strBeatsPerMinute = string.Empty;
		private int m_iBitrate;
		private string m_strContentDistributor = string.Empty;
		private string m_strCopyright = string.Empty;
		private string m_strCopyrightURL = string.Empty;
		private string m_strDescription = string.Empty;
		private long m_iDuration;
		private long m_iFileSize;
		private string m_strWMGenre = string.Empty;
		private string m_strProvider = string.Empty;
		private string m_strPublisher = string.Empty;
		private string m_strTitle = string.Empty;
		private string m_strWMTrackNumber = string.Empty;
		private string m_strWMYear = string.Empty;
		private bool m_bHasAudio;

		#endregion

		#region Properties
		/// <summary>
        /// Gets the full path of the directory or file.
		/// </summary>
        /// <value>
        /// Type: <see cref="System.String"/>
        /// A string containing the full path.
        /// </value>
		public string FullName
		{
			get {return m_strFullName;}
			set {m_strFullName = value;}
		}
		/// <summary>
        /// Gets the name of the file.
		/// </summary>
        /// <value>
        /// Type: <see cref="System.String"/>
        /// The name of the file.
        /// </value>
		public string Name
		{
			get {return m_strName;}
			set {m_strName = value;}
		}
        /// <summary>
        /// Gets the string representing the extension part of the file.
        /// </summary>
        /// <value>
        /// Type: <see cref="System.String"/>
        /// A string containing the <see cref="System.IO.FileSystemInfo"/> extension.
        /// </value>
		public string Extension
		{
			get {return m_strExtension;}
			set {m_strExtension = value;}
		}
		/// <summary>
        /// Gets the name of the primary artist for the album.
		/// </summary>
        /// <value>
        /// Type: <see cref="System.String"/>
        /// The name of the primary artist.
        /// </value>
		public string WMAlbumArtist
		{
			get {return m_strWMAlbumArtist;}
			set {m_strWMAlbumArtist = value;}
		}
		/// <summary>
        /// Gets the title of the album on which the content was originally released.
		/// </summary>
        /// <value>
        /// Type: <see cref="System.String"/>
        /// The title of the album.
        /// </value>
		public string WMAlbumTitle
		{
			get {return m_strWMAlbumTitle;}
			set {m_strWMAlbumTitle = value;}
		}
		
		public string AudioFileUrl
		{
			get {return m_strAudioFileUrl;}
			set {m_strAudioFileUrl = value;}
		}
		
		public string Author
		{
			get {return m_strAuthor;}
			set {m_strAuthor = value;}
		}
		
		public string BeatsPerMinute
		{
			get {return m_strBeatsPerMinute;}
			set {m_strBeatsPerMinute = value;}
		}

		public int Bitrate
		{
			get {return m_iBitrate;}
			set {m_iBitrate = value;}
		}

		public string ContentDistributor
		{
			get {return m_strContentDistributor;}
			set {m_strContentDistributor = value;}
		}

		public string Copyright
		{
			get {return m_strCopyright;}
			set {m_strCopyright = value;}
		}
		
		public string CopyrightURL
		{
			get {return m_strCopyrightURL;}
			set {m_strCopyrightURL = value;}
		}
		
		public string Description
		{
			get {return m_strDescription;}
			set {m_strDescription = value;}
		}

		public long Duration
		{
			get {return m_iDuration;}
			set {m_iDuration = value;}
		}

		public long FileSize
		{
			get {return m_iFileSize;}
			set {m_iFileSize = value;}
		}

		public string WMGenre
		{
			get {return m_strWMGenre;}
			set {m_strWMGenre = value;}
		}

		public string Provider
		{
			get {return m_strProvider;}
			set {m_strProvider = value;}
		}

		public string Publisher
		{
			get {return m_strPublisher;}
			set {m_strPublisher = value;}
		}

		public string Title
		{
			get {return m_strTitle;}
			set {m_strTitle = value;}
		}

		public string WMTrackNumber
		{
			get {return m_strWMTrackNumber;}
			set {m_strWMTrackNumber = value;}
		}

		public string WMYear
		{
			get {return m_strWMYear;}
			set {m_strWMYear = value;}
		}

		public bool HasAudio
		{
			get {return m_bHasAudio;}
			set {m_bHasAudio = value;}
		}

		#endregion

	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Switzerland Switzerland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions