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

Can RecorderModule only record incoming from mic while AEAudioFilePlayerModule is playing? #45

Open
umtclskn opened this issue Oct 10, 2016 · 0 comments

Comments

@umtclskn
Copy link

AEAudioFileRecorderModule record all of audio from output stack.
Is there a way to record the only coming from built-in mic. When Built-in speaker is playing? (When other players are running)

My render order :
...

   if ( THIS->_inputEnabled ) {// activate when user press the record button
        // Add audio input
        AEModuleProcess(input, context);
        if ( THIS->_playingThroughSpeaker == NO ) {
            //if headset is plugged in, user will be monitoring input data
            AERenderContextOutput(context, 1);
            if ( recorder ) {
                AEModuleProcess(recorder, context);
            }

        }else{
            //user record via device's built mic ( players module is running)
            if ( recorder ) {
                AEModuleProcess(recorder, context);
            }
        }
    }

    AEModuleProcess(THIS.mixer, context);
    AERenderContextOutput(context, 1);
    ....

Is there any idea of how to configure my render process? Or is it possible?

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