Class Mp3SpltAudioUtility
Mp3 split audio utility.
Implements
Inherited Members
Namespace: Acoustics.Tools.Audio
Assembly: Acoustics.Tools.dll
Syntax
[Obsolete("No longer have need of mp3splt")]
public class Mp3SpltAudioUtility : AbstractAudioUtility, IAudioUtility
Constructors
| Improve this Doc View SourceMp3SpltAudioUtility(FileInfo)
Initializes a new instance of the Mp3SpltAudioUtility class.
Declaration
public Mp3SpltAudioUtility(FileInfo mp3SpltExe)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | mp3SpltExe | The mp 3 splt exe. |
Exceptions
Type | Condition |
---|---|
FileNotFoundException | Could not find exe. |
ArgumentNullException |
|
Mp3SpltAudioUtility(FileInfo, DirectoryInfo)
Initializes a new instance of the Mp3SpltAudioUtility class.
Declaration
public Mp3SpltAudioUtility(FileInfo mp3SpltExe, DirectoryInfo temporaryFilesDirectory)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | mp3SpltExe | The mp 3 splt exe. |
DirectoryInfo | temporaryFilesDirectory |
Exceptions
Type | Condition |
---|---|
FileNotFoundException | Could not find exe. |
ArgumentNullException |
|
Properties
| Improve this Doc View SourceInvalidOutputMediaTypes
Gets the invalid output media types.
Declaration
protected override IEnumerable<string> InvalidOutputMediaTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<String> |
Overrides
| Improve this Doc View SourceInvalidSourceMediaTypes
Gets the invalid source media types.
Declaration
protected override IEnumerable<string> InvalidSourceMediaTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<String> |
Overrides
| Improve this Doc View SourceMp3FileName
Gets or sets Mp3File.
Declaration
public FileInfo Mp3FileName { get; set; }
Property Value
Type | Description |
---|---|
FileInfo |
SegmentSizeHundredths
Gets or sets SegmentSizeHundredths (0 - 99). Use for higher precision.
Declaration
public int? SegmentSizeHundredths { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
SegmentSizeMinutes
Gets or sets SegmentSizeMinutes (0 - no limit).
Declaration
public int SegmentSizeMinutes { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SegmentSizeSeconds
Gets or sets SegmentSizeSeconds (0 - 59).
Declaration
public int SegmentSizeSeconds { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ValidOutputMediaTypes
Gets the valid output media types.
Declaration
protected override IEnumerable<string> ValidOutputMediaTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<String> |
Overrides
| Improve this Doc View SourceValidSourceMediaTypes
Gets the valid source media types.
Declaration
protected override IEnumerable<string> ValidSourceMediaTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<String> |
Overrides
| Improve this Doc View SourceWorkingDirectory
Gets or sets WorkingDirectory.
Declaration
public DirectoryInfo WorkingDirectory { get; set; }
Property Value
Type | Description |
---|---|
DirectoryInfo |
Methods
| Improve this Doc View SourceCheckRequestValid(FileInfo, String, FileInfo, String, AudioUtilityRequest)
The check audioutility request.
Declaration
protected override void CheckRequestValid(FileInfo source, string sourceMimeType, FileInfo output, string outputMediaType, AudioUtilityRequest request)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | source | |
String | sourceMimeType | |
FileInfo | output | The output. |
String | outputMediaType | The output media type. |
AudioUtilityRequest | request | The request. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentException | Mp3Splt cannot perform this type of request. |
ConstructInfoArgs(FileInfo)
The construct info args.
Declaration
protected override string ConstructInfoArgs(FileInfo source)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | source | The source. |
Returns
Type | Description |
---|---|
String | The System.String. |
Overrides
| Improve this Doc View SourceConstructModifyArgs(FileInfo, FileInfo, AudioUtilityRequest)
The construct modify args.
Declaration
protected override string ConstructModifyArgs(FileInfo source, FileInfo output, AudioUtilityRequest request)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | source | The source. |
FileInfo | output | The output. |
AudioUtilityRequest | request | The request. |
Returns
Type | Description |
---|---|
String | The System.String. |
Overrides
| Improve this Doc View SourceGetInfo(FileInfo, ProcessRunner)
The get info.
Declaration
protected override AudioUtilityInfo GetInfo(FileInfo source, ProcessRunner process)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | source | The source. |
ProcessRunner | process | The process. |
Returns
Type | Description |
---|---|
AudioUtilityInfo | The Acoustics.Tools.AudioUtilityInfo. |
Overrides
| Improve this Doc View SourceRun()
Split the mp3 file.
Declaration
public IEnumerable<Mp3SpltAudioUtility.SplitFileInfo> Run()
Returns
Type | Description |
---|---|
IEnumerable<Mp3SpltAudioUtility.SplitFileInfo> | Standard output and error. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException |
|
SingleSegment(String, Int64, Int64)
Get a single segment froma file.
Declaration
public string SingleSegment(string tempFilePath, long start, long end)
Parameters
Type | Name | Description |
---|---|---|
String | tempFilePath | Temp file path. |
Int64 | start | Start in milliseconds from start of file. |
Int64 | end | End in milliseconds from start of file. |
Returns
Type | Description |
---|---|
String | Path to segment. |