espressif / esp-adf

Espressif Audio Development Framework
Other
1.53k stars 671 forks source link

Support developing and running a subset of the ADF on Linux (AUD-4687) #1026

Open maowen opened 1 year ago

maowen commented 1 year ago

Is your feature request related to a problem? Please describe.

My problem is that development would be improved and my ability to quickly run tests on my code if I could run the portion of the ADF that doesn't have hardware dependencies directly on Linux. Ideally there would be some audio_stream elements that target Linux and not the esp32 (e.g. pulse_stream, alsa_stream, port_audio_stream, file_stream).

Describe the solution you'd like

I would like to be able to target building for and running esp ADF code on Linux. It would be great if there was a simple minimal example that would demonstrate how to do this. In the beginning, the list of Linux compatible elements may be limited, but incremental improvements could be made in follow on efforts.

A clear and concise description of what you want to happen.

Make it possible to compile and run the following component on Linux:

Make it possible to compile and run a subset of the following components on Linux:

A clear and concise description of any alternative solutions or features you've considered.

The alternative is to exclusively develop and build on esp32 chips. This does work but it makes automated testing and debugging more difficult.

jason-mao commented 1 year ago

@maowen Thanks for mention this requirement. Yes, we have plan to do this, actually already work on it, the basic component already has been released, https://github.com/espressif/esp-adf-libs/tree/b0e908b0252d94025fb82274e5d23910bedf0d7c/media_lib_sal. After that the new features are develop by media_lib_sal APIs, such as RTMP, esp_muxer and esp_rtc. And there are a lot of changes of old version and some new features need to implement. Please kindly maintain your attention on us.