10 Replies Latest reply on Sep 21, 2016 9:45 AM by VideoCasto

    Disable mic loopback sound from speakers.

    VideoCasto Level 1



      When enable loopback on microphone,  sound is heard from the speakers and I wanna block it. I found some answers to this, but do not work. Here is the answer (not working):


      mic.soundTransform = new SoundTransform();
      mic.soundTransform.volume = 0;


      And here is my code with this answer:


      import flash.media.SoundTransform;
        import flash.media.Microphone;
        import flash.media.SoundCodec; 
        import flash.media.MicrophoneEnhancedMode;
        import flash.media.MicrophoneEnhancedOptions;
        var mic:Microphone;
        mic = Microphone.getEnhancedMicrophone();
        var options:MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions();
        options.mode = MicrophoneEnhancedMode.FULL_DUPLEX;
        options.echoPath = 128;
        options.nonLinearProcessing = true;
        mic.codec = SoundCodec.SPEEX;
        mic.encodeQuality = 8; 
        mic.framesPerPacket = 1;
        mic.enhancedOptions = options;
        mic.soundTransform = new SoundTransform(0);
        mic.soundTransform.volume = 0;