diff options
Diffstat (limited to 'win/C#/interop/SourceData/AudioTrack.cs')
-rw-r--r-- | win/C#/interop/SourceData/AudioTrack.cs | 58 |
1 files changed, 23 insertions, 35 deletions
diff --git a/win/C#/interop/SourceData/AudioTrack.cs b/win/C#/interop/SourceData/AudioTrack.cs index 76de1b65a..735ddd965 100644 --- a/win/C#/interop/SourceData/AudioTrack.cs +++ b/win/C#/interop/SourceData/AudioTrack.cs @@ -1,13 +1,15 @@ -// --------------------------------------------------------------------------------------------------------------------
-// <copyright file="AudioTrack.cs" company="HandBrake Project (http://handbrake.fr)">
-// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
-// </copyright>
-// <summary>
-// An object represending an AudioTrack associated with a Title, in a DVD
-// </summary>
-// --------------------------------------------------------------------------------------------------------------------
+/* AudioTrack.cs $
+
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ It may be used under the terms of the GNU General Public License. */
-namespace HandBrake.Interop.SourceData
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Text.RegularExpressions;
+
+namespace HandBrake.SourceData
{
/// <summary>
/// An object represending an AudioTrack associated with a Title, in a DVD
@@ -15,38 +17,29 @@ namespace HandBrake.Interop.SourceData public class AudioTrack
{
/// <summary>
- /// Gets or sets the track number of this Audio Track
+ /// The track number of this Audio Track
/// </summary>
public int TrackNumber { get; set; }
/// <summary>
- /// Gets or sets the language (if detected) of this Audio Track
+ /// The language (if detected) of this Audio Track
/// </summary>
public string Language { get; set; }
- /// <summary>
- /// Gets or sets LanguageCode.
- /// </summary>
public string LanguageCode { get; set; }
- /// <summary>
- /// Gets or sets Description.
- /// </summary>
public string Description { get; set; }
/// <summary>
- /// Gets or sets the frequency (in MHz) of this Audio Track
+ /// The frequency (in MHz) of this Audio Track
/// </summary>
public int SampleRate { get; set; }
/// <summary>
- /// Gets or sets the bitrate (in kbps) of this Audio Track
+ /// The bitrate (in kbps) of this Audio Track
/// </summary>
public int Bitrate { get; set; }
- /// <summary>
- /// Gets Display.
- /// </summary>
public string Display
{
get
@@ -55,9 +48,6 @@ namespace HandBrake.Interop.SourceData }
}
- /// <summary>
- /// Gets NoTrackDisplay.
- /// </summary>
public string NoTrackDisplay
{
get
@@ -75,18 +65,16 @@ namespace HandBrake.Interop.SourceData return this.GetDisplayString(true);
}
- /// <summary>
- /// Get the Display String
- /// </summary>
- /// <param name="includeTrackNumber">
- /// The include track number.
- /// </param>
- /// <returns>
- /// A String
- /// </returns>
private string GetDisplayString(bool includeTrackNumber)
{
- return includeTrackNumber ? (this.TrackNumber + " " + this.Description) : this.Description;
+ if (includeTrackNumber)
+ {
+ return this.TrackNumber + " " + this.Description;
+ }
+ else
+ {
+ return this.Description;
+ }
}
}
}
\ No newline at end of file |