Page 1 of 1

Pipeline restart

Posted: Mon Feb 26, 2024 12:05 pm
by jferreira
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

Re: Pipeline restart

Posted: Wed May 29, 2024 7:19 am
by divy98
Try adding these function calls before your audio_pipeline_run()

Code: Select all

                
                audio_pipeline_reset_ringbuffer(pipeline);
                audio_pipeline_reset_elements(pipeline);