共用方式為


AudioContent Members

AudioContent members.

The following tables list the members exposed by the AudioContent type.

Public Constructors

Name Description
Public Method AudioContent Initializes a new instance of AudioContent.

Public Properties

Name Description
Public Property Data Gets the raw audio data.
Public Property Duration Gets the duration (in milliseconds) of the audio data.
Public Property FileName Gets the file name containing the audio data.
Public Property FileType Gets the AudioFileType of this audio source.
Public Property Format Gets the AudioFormat of this audio source.
Public Property Identity (Inherited from ContentItem.)
Public Property LoopLength Gets the loop length, in samples.
Public Property LoopStart Gets the loop start, in samples.
Public Property Name (Inherited from ContentItem.)
Public Property OpaqueData (Inherited from ContentItem.)

Public Methods

Name Description
Public Method ConvertFormat Transcodes the source audio to the target format and quality.
Public Method Dispose Immediately releases the unmanaged resources used by this object.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize Releases unmanaged resources and performs other cleanup operations before garbage collection reclaims the object.
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

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