Class Mp3Importer
Provides methods for reading MP3 audio files for use in the Content Pipeline.
[ContentImporter(".mp3", DisplayName = "Mp3 Importer - MonoGame", DefaultProcessor = "SongProcessor")]
public class Mp3Importer : ContentImporter<AudioContent>, IContentImporter
- Inheritance
-
Mp3Importer
- Implements
- Inherited Members
Constructors
Mp3Importer()
Initializes a new instance of Mp3Importer.
public Mp3Importer()
Methods
Import(string, ContentImporterContext)
Called by the XNA Framework when importing an MP3 audio file to be used as a game asset. This is the method called by the XNA Framework when an asset is to be imported into an object that can be recognized by the Content Pipeline.
public override AudioContent Import(string filename, ContentImporterContext context)
Parameters
filename
stringName of a game asset file.
context
ContentImporterContextContains information for importing a game asset, such as a logger interface.
Returns
- AudioContent
Resulting game asset.