Click here to Skip to main content
15,885,757 members
Articles / Programming Languages / C#

Using OpenTK/OpenAL to Develop Cross Platform DIS VOIP Application

Rate me:
Please Sign up or sign in to vote.
4.79/5 (8 votes)
15 Mar 2010BSD10 min read 44.8K   1.7K   24  
Application allows voice communications (VOIP) utilizing the Distributed Interactive Simulation protocol (IEEE 1278.1)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DISnet.Enumerations
{
    public static class SignalPDUEnumerations
    {
//        Encoding Classes (bits 15 and 14) are:
//        Field Value (bits 15, 14)     Radio Signal Encoding Class
//              0 (0,0)                     Encoded audio
//              1 (0,1)                    Raw Binary Data
//              2 (1,0)                    Application-Specific Data
//              3 (1,1)                    Database index
        
        [FlagsAttribute]
        public enum RadioSignalEncodingClassEnum : short
        {
            Encoded_Audio = 0, Raw_Binary_Data = 1, Application_Specific_Data = 2, Database_Index = 3
        }

        //    Encoding Types (bits 13-0) are:
        //Field Value     Radio Signal Encoding Type
        //    1               8-bit mu-law
        //    2               CVSD per MIL-STD-188-113
        //    3               ADPCM per CCITT G.721
        //    4               16-bit linear PCM
        //    5               8-bit linear PCM
        //    6               VQ (Vector Quantization)

        public enum RadioSignalEncodingTypeEnum : short
        {
	         Eight_Bit_MuLaw = 1, CVSD = 2, ADPCM_G721 = 3, Sixteen_Bit_Linear_PCM = 4, Eight_Bit_Linear_PCM = 5, Vector_Quantization = 6
        }
    }
}

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, along with any associated source code and files, is licensed under The BSD License


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

Comments and Discussions