Pipeline restart

jferreira
Posts: 1
Joined: Mon Feb 26, 2024 11:57 am

Pipeline restart

Postby jferreira » Mon Feb 26, 2024 12:05 pm

Dear all,
I am using pipeline_recording_to_sdcard example to create an audio recorder.
The first recording is working, where I finnish with the following pipeline functions:

Code: Select all

audio_pipeline_stop(pipeline);
            audio_pipeline_wait_for_stop(pipeline);
            audio_pipeline_terminate(pipeline);
After I create a new path to record and I start the pipeline with:

Code: Select all

audio_pipeline_run(pipeline);
However the file is created but looks that the buffer isn't working.
What function am I missing to restart properly the recorder pipeline?

Many thanks,
João

divy98
Posts: 6
Joined: Mon May 06, 2024 5:56 am

Re: Pipeline restart

Postby divy98 » Wed May 29, 2024 7:19 am

Try adding these function calls before your audio_pipeline_run()

Code: Select all

                
                audio_pipeline_reset_ringbuffer(pipeline);
                audio_pipeline_reset_elements(pipeline);

Who is online

Users browsing this forum: No registered users and 8 guests