MP3GainWrapperApplyChannelGain(FileInfo, MP3GainChannel, Int32, Boolean) Method

Applies a volume gain change on the specified audio file.

Definition

Namespace: DevCase.ThirdParty.MP3Gain
Assembly: DevCase.net48.ThirdParty.MP3gain (in DevCase.net48.ThirdParty.MP3gain.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public int ApplyChannelGain(
	FileInfo file,
	MP3GainChannel channel,
	int gainLevel,
	bool preserveDatestamp = true
)

Parameters

file  FileInfo
The audio file.
channel  MP3GainChannel
The stereo channel for which to apply the gain change.
gainLevel  Int32
The volume gain change, in decibels.
preserveDatestamp  Boolean  (Optional)
If set to , the file date is untouched after successful task.

Return Value

Int32
The process exit code.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed applications:

MP3Gain (mp3gain.exe)

Exceptions

ArgumentOutOfRangeException gainLevel;Value from range -100 to +100 is required.

See Also