Skip to main content
AudioEncodingProperties.CreateMp3 | createMp3 method

Applies to Windows and Windows Phone

Creates an instance of AudioEncodingProperties for MPEG Audio Layer-3 (MP3) audio.

Syntax


var audioEncodingProperties = Windows.Media.MediaProperties.AudioEncodingProperties.createMp3(sampleRate, channelCount, bitrate);

public static AudioEncodingProperties CreateMp3(
  uint sampleRate, 
  uint channelCount, 
  uint bitrate
)

Public Shared Function CreateMp3(
  sampleRate As UInteger,  
  channelCount As UInteger,  
  bitrate As UInteger 
) As AudioEncodingProperties

public:
static AudioEncodingProperties^ CreateMp3(
  unsigned int sampleRate, 
  unsigned int channelCount, 
  unsigned int bitrate
)

Parameters

sampleRate

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The audio sampling rate.

channelCount

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The number of audio channels.

bitrate

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The audio bit rate.

Return value

Type: AudioEncodingProperties

The audio encoding properties.

Remarks

  • Applies to Windows Phone

Note  While it is technically possible to call CreateMp3, you cannot use this profile to transcode or encode audio into the MP3 format on Windows Phone. This is because an MP3 encoder is not shipped with Windows Phone. This API is included for completeness and allows you to use it with 3rd party MP3 encoders that you include with your app.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.MediaProperties
Windows::Media::MediaProperties [C++]

Metadata

Windows.winmd

See also

AudioEncodingProperties