arduino / arduino/ArduinoCore-API
AudioStream API
- Ngôn ngữ chính
- C++
- Star
- 306
- Fork
- 150
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi @PaulStoffregen,
We're exploring adding an AudioStream API to Arduino that extends the current Stream type. The draft interface can be found here: [api/Audio/AudioStream.h](https://github.com/arduino/ArduinoCore-API/blob/master/api/Audio/AudioStream.h). We would appreciate any feedback you have on it.
We've taken a look at the Teensy Core's [AudioStream type](https://github.com/PaulStoffregen/cores/blob/master/teensy3/AudioStream.h) and noticed it doesn't have any public interfaces to access the raw sample data. Was this done for performance reasons?
Uses cases we are thinking about include:
- [reading a file from SD card and playing back via I2S or DAC](https://github.com/arduino/ArduinoCore-API/blob/master/api/Audio/examples/WaveToI2S/WaveToI2S.ino)
- [reading data from a I2S or ADC microphone and saving to SD card](https://github.com/arduino/ArduinoCore-API/blob/master/api/Audio/examples/I2SToWave/I2SToWave.ino)
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng cách đọc api/Audio/AudioStream.h và các ví dụ Audio WaveToI2S/WaveToI2S.ino và I2SToWave/I2SToWave.ino, sau đó so sánh với Teensy AudioStream type được liên kết. Issue này yêu cầu phản hồi về một interface bản nháp và những lý do đằng sau một design hiện có, vì vậy để hoàn thành sẽ cần thống nhất một hướng API thay vì một thay đổi mã được xác định rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- api, audio-video-rtc, embedded-iot
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100