[riot-notifications] [RIOT-OS/RIOT] drivers/periph_common: dac: add dac_play() (#13908)

Marian Buschsieweke notifications at github.com
Sat Nov 7 09:45:15 CET 2020

@maribu commented on this pull request.

> +/**
+ * @brief   Play a buffer of (audio) samples on a DAC.
+ *
+ * @param[in] dac           The DAC to play the sample on
+ * @param[in] buf           A buffer with (audio) samples
+ * @param[in] params        Playback parameters
+ */
+void dac_play(dac_t dac, const void *buf, size_t len);

Calling any form of directly generating waveforms from digital values is actually pretty common: https://www.arduino.cc/reference/en/libraries/dds/, https://hackaday.com/2016/02/12/embed-with-elliot-audio-playback-with-direct-digital-synthesis/

But `dac_buffer_play()` and `dac_buffer_stop()` is also a good name.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201107/e3193b61/attachment.htm>

More information about the notifications mailing list