Class WavPackAudioUtility
Audio utility implemented using wav(un)pack.
Implements
Inherited Members
Namespace: Acoustics.Tools.Audio
Assembly: Acoustics.Tools.dll
Syntax
public class WavPackAudioUtility : AbstractAudioUtility, IAudioUtility
Constructors
| Improve this Doc View SourceWavPackAudioUtility(FileInfo)
Initializes a new instance of the Wav
Declaration
public WavPackAudioUtility(FileInfo wavUnpack)
Parameters
| Type | Name | Description |
|---|---|---|
| File |
wavUnpack | The wav Unpack. |
Exceptions
| Type | Condition |
|---|---|
| File |
If the provided binary does not exist. |
| Argument |
If |
| Argument |
If |
WavPackAudioUtility(FileInfo, DirectoryInfo)
Initializes a new instance of the Wav
Declaration
public WavPackAudioUtility(FileInfo wavUnpack, DirectoryInfo temporaryFilesDirectory)
Parameters
| Type | Name | Description |
|---|---|---|
| File |
wavUnpack | The wav Unpack. |
| Directory |
temporaryFilesDirectory |
Exceptions
| Type | Condition |
|---|---|
| File |
If the provided binary does not exist. |
| Argument |
If |
| Argument |
If |
Fields
| Improve this Doc View SourceMissingBinary
Declaration
public const string MissingBinary = "Converting from WavPack is not supported because we cannot find a wvunpack binary."
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 SourceValidOutputMediaTypes
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)
The check audioutility request.
Declaration
protected override void CheckRequestValid(FileInfo source, string sourceMimeType, FileInfo output, string outputMediaType, AudioUtilityRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| File |
source | The source. |
| String | sourceMimeType | The source Mime Type. |
| File |
output | The output. |
| String | outputMediaType | The output media type. |
| Audio |
request | The request. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| Argument |
Wvunpack cannot perform this type of request. |
ConstructInfoArgs(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. |