Class SoxAudioUtility
Soxi (sound exchange information) Audio utility.
Implements
Inherited Members
Namespace: Acoustics.Tools.Audio
Assembly: Acoustics.Tools.dll
Syntax
public class SoxAudioUtility : AbstractAudioUtility, IAudioUtility
Constructors
| Improve this Doc View SourceSoxAudioUtility(FileInfo)
Initializes a new instance of the Sox
Declaration
public SoxAudioUtility(FileInfo soxExe)
Parameters
Type | Name | Description |
---|---|---|
File |
soxExe | The exe file. |
Exceptions
Type | Condition |
---|---|
File |
Could not find exe. |
Argument |
|
SoxAudioUtility(FileInfo, DirectoryInfo, Boolean)
Initializes a new instance of the Sox
Declaration
public SoxAudioUtility(FileInfo soxExe, DirectoryInfo temporaryFilesDirectory, bool enableShortNameHack = true)
Parameters
Type | Name | Description |
---|---|---|
File |
soxExe | The exe file. |
Directory |
temporaryFilesDirectory | Which directory should hold temporary files. |
Boolean | enableShortNameHack | Whether or not filenames with unicode characters should be shortened to 8.3 filenames on Windows. |
Exceptions
Type | Condition |
---|---|
File |
Could not find exe. |
Argument |
|
Fields
| Improve this Doc View SourceMp3NotSupportedOnOSX
Declaration
public const string Mp3NotSupportedOnOSX = "Working with MP3 in SoX is not supported on OSX."
Field Value
Type | Description |
---|---|
String |
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 SourceResampleQuality
Gets ResampleQuality.
Declaration
public SoxAudioUtility.SoxResampleQuality? ResampleQuality { get; }
Property Value
Type | Description |
---|---|
Nullable<Sox |
SupportsMp3
Declaration
public bool SupportsMp3 { get; }
Property Value
Type | Description |
---|---|
Boolean |
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
Methods
| Improve this Doc View SourceCheckRequestValid(FileInfo, String, FileInfo, String, AudioUtilityRequest)
Declaration
protected override void CheckRequestValid(FileInfo source, string sourceMimeType, FileInfo output, string outputMediaType, AudioUtilityRequest request)
Parameters
Type | Name | Description |
---|---|---|
File |
source | |
String | sourceMimeType | |
File |
output | |
String | outputMediaType | |
Audio |
request |
Overrides
| Improve this Doc View SourceConstructInfoArgs(FileInfo)
The construct info args.
Declaration
protected override string ConstructInfoArgs(FileInfo source)
Parameters
Type | Name | Description |
---|---|---|
File |
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 |
---|---|---|
File |
source | The source. |
File |
output | The output. |
Audio |
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 |
---|---|---|
File |
source | The source. |
Process |
process | The process. |
Returns
Type | Description |
---|---|
Audio |
The Acoustics.Tools.AudioUtilityInfo. |