1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
chrysn
4596f79c95 tests/dac_dds: Fix sine wave to fit in PCM range
The previous sine wave cast signed integers into the PCM range, causing
jumps at zero transitions. This shifts everything up by the respective
maximum signed integer, so that the signed idle zero becomes the
unsigned PCM signal's idle half-point and can continuously cover the
whole unsigned range.
2021-03-24 00:35:19 +01:00
Benjamin Valentin
c696fd7a0b tests/driver_dac_dds: use clearer hello recording
The "Hello World" sample is really hard to hear on the noisy DAC / speaker
setup on my same54-xpro.

Replace it with a clearer sample from Wikimedia Commons and fix the ffmpeg
command line.
2020-12-13 02:05:54 +01:00
Benjamin Valentin
0c36a57e4e tests: add samd10-xmini to Makefile.ci 2020-12-11 18:33:31 +01:00
chrysn
d1b9310da1 tests/driver_dac_dds: Replace hello file, add README
The previous file did not have a clear copyright situation; this one has
and it's described in the README.
2020-12-11 14:01:12 +01:00
chrysn
2de01519f3 tests/driver_dac_dds: Don't crash on infrasound requests 2020-12-11 11:39:32 +01:00
chrysn
2bfb40c2ae tests/driver_dac_dds: Report underruns 2020-12-11 11:39:32 +01:00
chrysn
057de665f1 tests/driver_dac_dds: Initialize at DC-free state 2020-12-11 09:42:28 +01:00
chrysn
198da1291b tests/driver_dac_dds: Precision in debug output 2020-12-11 09:40:08 +01:00
chrysn
a79de40263 tests/driver_dac_dds: Parametrize configured DAC device
The set default is good enough for single-channel board, but whenever
DAC_DDS_CHAN is not zero (or even when a board has more), this may need
changing.
2020-12-11 09:23:33 +01:00
chrysn
b392d76592 tests/driver_dac_dds: Remove debug statement 2020-12-11 09:19:12 +01:00
Benjamin Valentin
5681befe75 tests/driver_dac_dds: add test for dac_dds_play()
This will play a raw audio (8kHz, 8 Bit) snipped from the 1961 synthesized speech demo.
(Can be disabled since the file is rather large with 17k)

It will also play sine, square and sawtooth waves with frequencies that can be set on
the command line.

I tested this with the on-board speaker (connected to P0.26) of the mcb2388 as well
as with hooking up a headphone to the ANALOG (PA02) header of the same54-xpro.
2020-12-04 23:12:32 +01:00