Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

AGC and (AEC,NS) support at Audio Unit level#313

Open
IGitGotIt wants to merge 3 commits into
mainfrom
AudioControls
Open

AGC and (AEC,NS) support at Audio Unit level#313
IGitGotIt wants to merge 3 commits into
mainfrom
AudioControls

Conversation

@IGitGotIt

Copy link
Copy Markdown
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];

@goncalocostamendes goncalocostamendes left a comment

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants