Class AudioProfile
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
public abstract class AudioProfile
- Inheritance
-
AudioProfile
- Inherited Members
Methods
ConvertAudio(TargetPlatform, ConversionQuality, AudioContent)
Converts the audio content to work on targeted platform.
public abstract ConversionQuality ConvertAudio(TargetPlatform platform, ConversionQuality quality, AudioContent content)
Parameters
platform
TargetPlatformThe platform to build the audio content for.
quality
ConversionQualityThe suggested audio quality level.
content
AudioContentThe audio content to convert.
Returns
- ConversionQuality
The quality used for conversion which could be different from the suggested quality.
ConvertStreamingAudio(TargetPlatform, ConversionQuality, AudioContent, ref string)
Converts the audio content to a streaming format that works on targeted platform.
public abstract ConversionQuality ConvertStreamingAudio(TargetPlatform platform, ConversionQuality quality, AudioContent content, ref string outputFileName)
Parameters
platform
TargetPlatformThe platform to build the audio content for.
quality
ConversionQualityThe suggested audio quality level.
content
AudioContenthe audio content to convert.
outputFileName
string
Returns
- ConversionQuality
The quality used for conversion which could be different from the suggested quality.
ForPlatform(TargetPlatform)
Find the profile for this target platform.
public static AudioProfile ForPlatform(TargetPlatform platform)
Parameters
platform
TargetPlatformThe platform target for audio.
Returns
QualityToBitRate(ConversionQuality)
protected static int QualityToBitRate(ConversionQuality quality)
Parameters
quality
ConversionQuality
Returns
QualityToSampleRate(ConversionQuality, int)
protected static int QualityToSampleRate(ConversionQuality quality, int sourceSampleRate)
Parameters
quality
ConversionQualitysourceSampleRate
int
Returns
Supports(TargetPlatform)
Returns true if this profile supports audio processing for this platform.
public abstract bool Supports(TargetPlatform platform)
Parameters
platform
TargetPlatform