Click here to Skip to main content
15,893,487 members
Articles / Programming Languages / C#

Sending and playing microphone audio over network

Rate me:
Please Sign up or sign in to vote.
4.92/5 (65 votes)
3 Aug 20072 min read 524K   42.9K   336  
Sending and playing microphone audio over network
using System;
using System.Collections.Generic;
using System.Text;

namespace LumiSoft.Net.RTP
{
    /// <summary>
    /// This class holds RTP sender or receiver source description.
    /// </summary>
    public class RTP_SourceDescription
    {        
        private string m_CName    = "";
        private string m_Name     = "";
        private string m_Email    = "";
        private string m_Phone    = "";
        private string m_Location = "";
        private string m_Tool     = "";
        private string m_Note     = "";

        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="cname">Canonical End-Point Identifier.</param>
        public RTP_SourceDescription(string cname)
        {
            m_CName= cname;
        }


        #region Properties Implementation

        /// <summary>
        /// Gets Canonical End-Point Identifier.
        /// </summary>
        public string CName
        {
            get{ return m_CName; }
        }

        /// <summary>
        /// Gets the real name, eg. "John Doe".
        /// </summary>
        public string Name
        {
            get{ return m_Name; }
        }

        /// <summary>
        /// Gets email address. For example "John.Doe@example.com".
        /// </summary>
        public string Email
        {
            get{ return m_Email; }
        }

        /// <summary>
        /// Gets phone number. For example "+1 908 555 1212".
        /// </summary>
        public string Phone
        {
            get{ return m_Phone; }
        }

        /// <summary>
        /// Gets location string. It may be geographic address or for example chat room name.
        /// </summary>
        public string Location
        {
            get{ return m_Location; }
        }

        /// <summary>
        /// Gets streaming application name/version.
        /// </summary>
        public string Tool
        {
            get{ return m_Tool; }
        }

        /// <summary>
        /// Gets note text. The NOTE item is intended for transient messages describing the current state
        /// of the source, e.g., "on the phone, can't talk".
        /// </summary>
        public string Note
        {
            get{ return m_Note; }
        }

        #endregion

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Estonia Estonia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions