Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置AudioStreamBasicDescription那里 #2

Open
mustlogin opened this issue Mar 29, 2022 · 0 comments
Open

设置AudioStreamBasicDescription那里 #2

mustlogin opened this issue Mar 29, 2022 · 0 comments

Comments

@mustlogin
Copy link

mustlogin commented Mar 29, 2022

GSAudioCapture.m的94~95行:

94行:        //设置Element 1即Input Bus的输出为desc设置的参数,就保证我们获取的数据符合我们的要求
95行:        AudioUnitSetProperty(self.componetInstance, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, kInputBus, &desc, sizeof(desc));

按注释的意思,kAudioUnitScope_Output 是不是要用 kAudioUnitScope_Input

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

No branches or pull requests

1 participant