mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
This commit fixes the audio_rtttl example (which was undocumented and previously used kernel-level functions) such that now it uses the RTTTL parsing library. Contributors can implement 'players' for different types of audio sinks. Currently, PWM is supported. BREAKING: The previous version of this example only supported a single board (Spresense) and uses public interfaces from the kernel code. Now it only uses user-space interfaces and supports any board implementing those interfaces. Users who relied on the old behaviour should submit a patch to add a new player to this application which uses the desired audio sink for the Spresense through user-space interfaces. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
36 lines
816 B
Text
36 lines
816 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_AUDIO_SOUND
|
|
bool "Audio tone generator example (RTTL player)"
|
|
depends on AUDIO
|
|
depends on AUDIOUTILS_RTTTL_C
|
|
default n
|
|
---help---
|
|
Enable the audio RTTL player example.
|
|
|
|
if EXAMPLES_AUDIO_SOUND
|
|
|
|
config EXAMPLES_AUDIO_SOUND_PROGNAME
|
|
string "Program name"
|
|
default "audio_rttl"
|
|
|
|
config EXAMPLES_AUDIO_SOUND_PRIORITY
|
|
int "Audio sound task priority"
|
|
default 150
|
|
|
|
config EXAMPLES_AUDIO_SOUND_STACKSIZE
|
|
int "Audio sound stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
comment "Program options"
|
|
|
|
config EXAMPLES_AUDIO_SOUND_MAXLEN
|
|
int "Maximum RTTL string length"
|
|
default 256
|
|
---help---
|
|
The maximum length of an RTTL string that can be read from a file.
|
|
|
|
endif
|