Click here to Skip to main content
13,143,774 members (27,341 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Stats

25.7K views
1.5K downloads
23 bookmarked
Posted 28 Feb 2010
BSD

Using OpenTK/OpenAL to Develop Cross Platform DIS VOIP Application

, 15 Mar 2010
Application allows voice communications (VOIP) utilizing the Distributed Interactive Simulation protocol (IEEE 1278.1)
MonoDISRadioTransmitter
AudioIN
bin
Properties
StyleCop.Cache
AudioOUT
bin
Properties
DISNET
bin
DataStreams
DISPDU
Enumerations
Properties
Utilities
OpenDISRadioTransmitterExample
AudioCodecs
bin
OpenDISRadioTransmitter.csproj.user
OpenTK
OpenTK.Compatibility.dll
OpenTK.dll
OpenTK.GLControl.dll
Properties
StyleCop.Cache
OpenDISRadioTransmitterSolution.suo
RadioFeatureSelection
bin
Properties
Sockets
bin
Properties
´╗┐namespace RadioFeatureSelection
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    public partial class RadioInterfaceOptions : UserControl
    {
        #region Fields

        private int frequency;
        private AudioOUT.PlayAudio.SpeakerLocation speakerLocation = AudioOUT.PlayAudio.SpeakerLocation.LeftRight;

        #endregion Fields

        #region Constructors

        public RadioInterfaceOptions()
        {
            InitializeComponent();
        }

        #endregion Constructors

        #region Enumerations

        public enum SpeakerLocation
        {
            Left,
            Right,
            LeftRight
        }

        #endregion Enumerations

        #region Properties

        public int Frequency
        {
            set
            {
            }

            get
            {
                return frequency;
            }
        }

        #endregion Properties

        #region Methods

        private void button_Apply_Click(object sender, EventArgs e)
        {
            if (this.textBox_Frequency.Text.Length > 0)
            {
                Int32.TryParse(this.textBox_Frequency.Text, out frequency);
            }
        }

        private void EarChoice()
        {
            if (this.radioButton_BothEars.Checked == true)
            {
                speakerLocation = AudioOUT.PlayAudio.SpeakerLocation.LeftRight;
            }

            if (this.radioButton_LeftEar.Checked == true)
            {
                speakerLocation = AudioOUT.PlayAudio.SpeakerLocation.Left;
            }

            if (this.radioButton_RightEar.Checked == true)
            {
                speakerLocation = AudioOUT.PlayAudio.SpeakerLocation.Right;
            }
        }

        #endregion Methods
    }
}

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

Share

About the Author

pesmith
Software Developer
United States United States
No Biography provided

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170915.1 | Last Updated 15 Mar 2010
Article Copyright 2010 by pesmith
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid