Skip to content

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

@umtclskn

Description

@umtclskn

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions