Skip to content

Conversation

@IGitGotIt
Copy link
Contributor

       UInt32 bypassVoiceProcessing = self.disableAudioProcessing;
        CheckError(AudioUnitSetProperty(*voice_unit,
                                       kAUVoiceIOProperty_BypassVoiceProcessing,
                                       kAudioUnitScope_Global,
                                       kInputBus,
                                       &bypassVoiceProcessing,
                                        sizeof(bypassVoiceProcessing)),
                   @"kAUVoiceIOProperty_BypassVoiceProcessing failed");
        UInt32 enableAGC = self.enableAGC;
        CheckError(AudioUnitSetProperty(*voice_unit,
                                       kAUVoiceIOProperty_VoiceProcessingEnableAGC,
                                       kAudioUnitScope_Global,
                                       kInputBus,
                                       &enableAGC,
                                       sizeof(enableAGC)),
                   @"kAUVoiceIOProperty_VoiceProcessingEnableAGC failed");

and instantiated with

    OTDefaultAudioDeviceWithVolumeControl* audioDevice =
    [[OTDefaultAudioDeviceWithVolumeControl alloc] initWithAGC:YES disableAudioProcessing:NO];

Copy link
Contributor

@goncalocostamendes goncalocostamendes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants