2013-10-27 14:23:01 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2013-10-27 14:23:01 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
config SYSTEM_NXPLAYER
|
2019-10-06 14:14:39 +02:00
|
|
|
bool "NxPlayer Media Player"
|
2013-10-27 14:23:01 +01:00
|
|
|
default n
|
2014-11-17 23:51:16 +01:00
|
|
|
depends on AUDIO
|
2013-10-27 14:23:01 +01:00
|
|
|
---help---
|
2015-04-07 21:23:39 +02:00
|
|
|
Enable support for the NxPlayer media player library and optional
|
|
|
|
command line interface.
|
2013-10-27 14:23:01 +01:00
|
|
|
|
|
|
|
if SYSTEM_NXPLAYER
|
|
|
|
|
2019-01-07 02:51:36 +01:00
|
|
|
config NXPLAYER_MAINTHREAD_STACKSIZE
|
|
|
|
int "NxPlayer main thread stack size"
|
2020-03-27 06:10:33 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2019-01-07 02:51:36 +01:00
|
|
|
---help---
|
|
|
|
Stack size to use with the NxPlayer main thread.
|
|
|
|
|
2013-11-10 17:58:14 +01:00
|
|
|
config NXPLAYER_PLAYTHREAD_STACKSIZE
|
|
|
|
int "NxPlayer thread stack size"
|
|
|
|
default 1500
|
|
|
|
---help---
|
|
|
|
Stack size to use with the NxPlayer play thread.
|
|
|
|
|
2013-10-27 14:23:01 +01:00
|
|
|
config NXPLAYER_COMMAND_LINE
|
2019-10-06 14:14:39 +02:00
|
|
|
tristate "Include nxplayer command line application"
|
2013-10-27 14:23:01 +01:00
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Compiles in code for the nxplayer command line control.
|
|
|
|
This is a text-based command line interface that uses
|
|
|
|
the nxplayer library to play media files, control the
|
|
|
|
volume, balance, bass, etc.
|
|
|
|
|
|
|
|
if NXPLAYER_COMMAND_LINE
|
|
|
|
|
|
|
|
config NXPLAYER_INCLUDE_HELP
|
|
|
|
bool "Include HELP command and text"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Compiles in the NxPlayer help text to provide online help
|
|
|
|
for available commands with syntax.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
config NXPLAYER_INCLUDE_DEVICE_SEARCH
|
|
|
|
bool "Include audio device search code"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Compiles in extra code to search the audio device directory
|
|
|
|
for a suitable audio device to play the specified file.
|
|
|
|
Disabling this feature saves some code space, but it will
|
|
|
|
mean the calling application must specify the path of the
|
|
|
|
audio device to use before performing any other operations.
|
|
|
|
|
|
|
|
config NXPLAYER_INCLUDE_PREFERRED_DEVICE
|
|
|
|
bool "Include preferred audio device specification code"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Adds support for identifying a specific audio device to use
|
|
|
|
for audio operations. If this feature is not enabled, then
|
|
|
|
an audio device search will be performed.
|
|
|
|
|
|
|
|
config NXPLAYER_FMT_FROM_EXT
|
|
|
|
bool "Include code to determine Audio format from extension"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Compiles in extra code to determine audio format based
|
|
|
|
on the filename extension for known file types.
|
2013-10-27 14:45:16 +01:00
|
|
|
This feature is used if the format is not manually
|
2013-10-27 14:23:01 +01:00
|
|
|
specified, and will take priority over the more lengthy
|
|
|
|
file content detection approach.
|
|
|
|
|
|
|
|
config NXPLAYER_FMT_FROM_HEADER
|
|
|
|
bool "Include code to find Audio format from file content"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Compiles in extra code to determine audio format based
|
|
|
|
on the header content of a file for known file types.
|
|
|
|
This feature is used when the format type cannot be
|
|
|
|
determined from the filename extension.
|
|
|
|
|
|
|
|
config NXPLAYER_INCLUDE_MEDIADIR
|
|
|
|
bool "Include support for specifying a media directory"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Compiles in extra code to set a media directory which
|
|
|
|
will be searched when a request is made to play a file
|
|
|
|
which is not fully qualified.
|
|
|
|
|
|
|
|
if NXPLAYER_INCLUDE_MEDIADIR
|
|
|
|
|
|
|
|
config NXPLAYER_DEFAULT_MEDIADIR
|
|
|
|
string "Default root directory to search for media files"
|
|
|
|
default "/music"
|
|
|
|
---help---
|
|
|
|
Specifies a root directory to search for media files
|
|
|
|
when an absolute path is not provided. This can be
|
|
|
|
changed at the nxplayer command line, but will default
|
|
|
|
to this value each time nxplayer is launched.
|
|
|
|
|
|
|
|
config NXPLAYER_RECURSIVE_MEDIA_SEARCH
|
|
|
|
bool "Perform recursive directory search for media files"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
When enabled, this feature will add code to perform
|
|
|
|
a complete recursive directory search within the
|
|
|
|
MEDIADIR for any media files that do not have a
|
|
|
|
qualified path (i.e. contain no '/' characters).
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
config NXPLAYER_INCLUDE_SYSTEM_RESET
|
|
|
|
bool "Include support for system / hardware reset"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
When enabled, this feature will add code to enable issuing
|
|
|
|
a HW reset via program call. The system reset will perform
|
|
|
|
a reset on all registered audio devices.
|
|
|
|
|
2017-12-19 06:57:36 +01:00
|
|
|
config NXPLAYER_HTTP_STREAMING_SUPPORT
|
|
|
|
bool "Include support for http streaming"
|
|
|
|
default n
|
|
|
|
depends on NET_IPv4 && NET_TCP
|
|
|
|
---help---
|
|
|
|
When enabled, this feature will add code to enable HTTP
|
|
|
|
audio streaming as well as local file playback.
|
|
|
|
|
2013-10-27 14:23:01 +01:00
|
|
|
endif
|
2020-05-21 04:29:45 +02:00
|
|
|
|
|
|
|
if NXPLAYER_HTTP_STREAMING_SUPPORT
|
|
|
|
|
|
|
|
config NXPLAYER_HTTP_MAXHOSTNAME
|
|
|
|
int "Max host name in URL"
|
|
|
|
default 40
|
|
|
|
|
|
|
|
config NXPLAYER_HTTP_MAXFILENAME
|
|
|
|
int "Max file name in URL"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
endif
|