Share via


AudioContent.ConvertFormat Method

Note

This method is available only when developing for Windows.

Transcodes the source audio to the target format and quality.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Audio
Assembly: (in )

Syntax

public void ConvertFormat (
         ConversionFormat formatType,
         ConversionQuality quality,
         string targetFileName
)

Parameters

  • formatType
    Format of the processed source audio: WAV, MP3 or WMA.

  • quality
    Quality of the processed source audio. It can be one of the following:

    • Low (96 kbps)
    • Medium (128 kbps)
    • Best (192 kbps)
  • targetFileName
    Name of the file containing the processed source audio.

See Also

Reference

AudioContent Class
AudioContent Members
Microsoft.Xna.Framework.Content.Pipeline.Audio Namespace

Platforms

Windows XP SP2, Windows Vista