Ejemplo n.º 1
0
        public VoipSound(SoundManager owner, VoipQueue q) : base(owner, "voip", true, true)
        {
            VoipConfig.SetupEncoding();

            ALFormat   = Al.FormatMono16;
            SampleRate = VoipConfig.FREQUENCY;

            queue    = q;
            bufferID = queue.LatestBufferID;

            soundChannel = null;

            SoundChannel chn = new SoundChannel(this, 1.0f, null, 0.4f, 1.0f, "voip", false);

            soundChannel = chn;
        }
Ejemplo n.º 2
0
        public VoipSound(string name, SoundManager owner, VoipQueue q) : base(owner, $"VoIP ({name})", true, true, getFullPath: false)
        {
            VoipConfig.SetupEncoding();

            ALFormat   = Al.FormatMono16;
            SampleRate = VoipConfig.FREQUENCY;

            queue    = q;
            bufferID = queue.LatestBufferID;

            soundChannel = null;

            SoundChannel chn = new SoundChannel(this, 1.0f, null, 1.0f, 0.4f, 1.0f, "voip", false);

            soundChannel = chn;
            Gain         = 1.0f;
        }