AudioContent.ConvertFormat Method
Note
This method is available only when developing for Windows.
Transcodes the source audio to the target format and quality.
Syntax
'Declaration
Public Sub ConvertFormat ( _
formatType As ConversionFormat, _
quality As ConversionQuality, _
targetFileName As String _
)
public void ConvertFormat (
ConversionFormat formatType,
ConversionQuality quality,
string targetFileName
)
public:
void ConvertFormat(
ConversionFormat formatType,
ConversionQuality quality,
String targetFileName
)
Parameters
formatType
Type: ConversionFormat
Format of the processed source audio: WAV, MP3 or WMA.quality
Type: ConversionQualityQuality of the processed source audio. It can be one of the following:
- Low (96 kbps)
- Medium (128 kbps)
- Best (192 kbps)
targetFileName
Type: String
Name of the file containing the processed source audio.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Audio
Assembly: (in )
See Also
Reference
AudioContent Class
AudioContent Members
Microsoft.Xna.Framework.Content.Pipeline.Audio Namespace
Platforms
Windows 7, Windows Vista, Windows XP