AudioContent Class (Microsoft.Xna.Framework.Content.Pipeline.Audio)

Encapsulates and provides operations, such as format conversions, on the source audio. This type is produced by the audio importers and used by audio processors to produce compiled audio assets.
System.Object
   Microsoft.Xna.Framework.Content.Pipeline.ContentItem
      Microsoft.Xna.Framework.Content.Pipeline.Audio.AudioContent

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Audio
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public class AudioContent : ContentItem, IDisposable

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The AudioContent type exposes the following members.

  Platforms Name Description
AudioContent Initializes a new instance of AudioContent. 
Top
  Platforms Name Description
Data The current raw audio data without header information. 
Duration The duration of the audio data. 
FileName The name of the original source audio file. 
FileType The type of the original source audio file. 
Format The current format of the audio data. 
Identity Gets or sets the identity of the content item. (Inherited from ContentItem.)
LoopLength The current loop length in samples. 
LoopStart The current loop start location in samples. 
Name Gets or sets the name of the content item. (Inherited from ContentItem.)
OpaqueData Gets the opaque data of the content item. (Inherited from ContentItem.)
Top
  Platforms Name Description
ConvertFormat Transcodes the source audio to the target format and quality. 
Dispose  (Implements IDisposable.Dispose().)
SetData  
Top
Note that AudioContent can load and process audio files that are not supported by the importers.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop