Code: Untitled.c Select all
I am looking to run a program on an ESP32 LyraT Mini V1.2 which depending on the user input (UART) can record to the inserted SD card as a .wav file or playback one of the .wav files from the SD card.
I have successfully run both the pipeline_play_sdcard_music and pipeline_recording_to_sdcard seperately on an ESP32 LyraT Mini V1.2. I have then attempted to merge both these projects into one folder and followed their example READMEs, ensuring that the menuconfig settings have been completed as per the instructions for both examples. However, if I base the project off the playback example, I get an error:
`error: 'audio_encoder' is used uninitialized [-Werror=uninitialized]
162 | audio_pipeline_unregister(pipeline, audio_encoder);`
If I base it off the recorder I get the error:
`error: 'music_decoder' is used uninitialized [-Werror=uninitialized]
128 | audio_pipeline_register(pipeline, music_decoder, "dec");`
I have noticed that the idf.py menuconfig display is slightly different depending on the project for example when it is based off the playback example there are much more options under `-> Example Configuration -> Audio Decoder` and the sdkconfig file does not include both CONFIG_AUDIO_SUPPORT_WAV_DECODER=y and CONFIG_CHOICE_WAV_ENCODER=y.
Is it possible for the ESP32 LyraT Mini to record/playback on the same program using ESP-ADF? And if so please could you give me some advice to get it done.
Thank you for your help in advance.