This example shows how to send an image and video
clip via MMS:
XMSAudioFile objAudio = new
XMSAudioFileClass();
XMSAACCodec objAACCodec = new
XMSAACCodecClass();
// Load the source WAV file
objAudio.LoadFile(Source);
// Specify the target file
objAudio.AudioConverter.TargetFilename =
Target;
// Specify properties for
conversion to AAC
objAACCodec.AudioQuality = 2048;
objAACCodec.BitRate = XMSMediaEngineLib.enumXMSBitRate.bps_56000;
objAACCodec.NumberOfChannels = 2;
// Stereo
objAACCodec.SamplingFrequency = hz_44100;
// Begin the conversion
objAudio.AudioConverter.Start((XMSAudioCodec)
objAACCodec);
|