summaryrefslogtreecommitdiff
path: root/NxWidgets
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-23 14:45:54 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-23 14:45:54 -0600
commit979db409ef890e94e7f9637f3c8410e6eaf25b65 (patch)
tree29c7b54b106d2a50ee807673ce54ee117f3b2ca7 /NxWidgets
parentbe0fcda3d78139dee5a8ade3d06ac09c9c54d7bd (diff)
downloadnuttx-979db409ef890e94e7f9637f3c8410e6eaf25b65.tar.gz
nuttx-979db409ef890e94e7f9637f3c8410e6eaf25b65.tar.bz2
nuttx-979db409ef890e94e7f9637f3c8410e6eaf25b65.zip
NxWM: Add configuration options to filter CMediaPlayer files based on extension
Diffstat (limited to 'NxWidgets')
-rw-r--r--NxWidgets/Kconfig98
1 files changed, 80 insertions, 18 deletions
diff --git a/NxWidgets/Kconfig b/NxWidgets/Kconfig
index ccef01ddb..8bd5ef26d 100644
--- a/NxWidgets/Kconfig
+++ b/NxWidgets/Kconfig
@@ -1118,7 +1118,7 @@ menu "NxWM Media Player Display Settings"
config NXWM_MEDIAPLAYER
bool "NxWM Media Player"
default n
- depends on FS_READABLE
+ depends on FS_READABLE && SYSTEM_NXPLAYER
---help---
Enable support for the MP3 Media Player. This features requires
a board that includes an MP3 Codec chip, such as the Mikromedia
@@ -1130,6 +1130,8 @@ config NXWM_MEDIAPLAYER
if NXWM_MEDIAPLAYER
+menu "Media File Configuration"
+
config NXWM_MEDIAPLAYER_MEDIAPATH
string "Path to media"
default "/mnt/sdcard"
@@ -1137,6 +1139,61 @@ config NXWM_MEDIAPLAYER_MEDIAPATH
This is the full path to the mount point of the storage device
containing all of the media files accessible by the media player.
+config NXWM_MEDIAPLAYER_NOFILTER
+ bool "Disable filtering by file name extension
+ default y
+
+config NXWM_MEDIAPLAYER_FILTER
+ bool
+ default n
+
+if !NXWM_MEDIAPLAYER_NOFILTER
+
+config NXWM_MEDIAPLAYER_FILTER_AC3
+ bool "Accept .ac3 extension"
+ default n
+ select NXWM_MEDIAPLAYER_FILTER
+
+config NXWM_MEDIAPLAYER_FILTER_DTS
+ bool "Accept .dts extension"
+ default n
+ select NXWM_MEDIAPLAYER_FILTER
+
+config NXWM_MEDIAPLAYER_FILTER_WAV
+ bool "Accept .wav extension"
+ default y
+ select NXWM_MEDIAPLAYER_FILTER
+
+config NXWM_MEDIAPLAYER_FILTER_PCM
+ bool "Accept .pcm extension"
+ default y
+ select NXWM_MEDIAPLAYER_FILTER
+
+config NXWM_MEDIAPLAYER_FILTER_MP3
+ bool "Accept .mp3 extension"
+ default n
+ select NXWM_MEDIAPLAYER_FILTER
+
+config NXWM_MEDIAPLAYER_FILTER_MIDI
+ bool "Accept .mid extension"
+ default n
+ select NXWM_MEDIAPLAYER_FILTER
+
+config NXWM_MEDIAPLAYER_FILTER_WMA
+ bool "Accept .wma extension"
+ default n
+ select NXWM_MEDIAPLAYER_FILTER
+
+config NXWM_MEDIAPLAYER_FILTER_OGGVORBIS
+ bool "Accept .ogg extension"
+ default n
+ select NXWM_MEDIAPLAYER_FILTER
+
+endif # !NXWM_MEDIAPLAYER_NOFILTER
+endmenu # Media File Configuration
+
+menu "General Look and Feel"
+
config NXWM_MEDIAPLAYER_XSPACING
int "Media Player Horizontal Spacing"
default 12
@@ -1152,23 +1209,6 @@ config NXWM_MEDIAPLAYER_YSPACING
forward, and reverse controls, and the volume slider in units of
lines.
-config NXWM_MEDIAPLAYER_VOLUMESTEP
- int "Media Player Volume Step"
- default 5
- ---help---
- This increment in volume, up or down, when the volume bar is clicked.
-
-config NXWM_MEDIAPLAYER_MINVOLUMEHEIGHT
- int "Minimum Player Volume Minimum Height"
- default 6
- ---help---
- The height of the slider is automatically calculated from the height
- of the grip image. However, we will not let the height of the grip
- get smaller than this value.
-
- NOTE: This width includes the size of the slider upper and lower
- borders.
-
config NXWM_MEDIAPLAYER_CUSTOM_COLORS
bool "Select Custom Media Player Colors"
default n
@@ -1189,6 +1229,28 @@ config NXWM_MEDIAPLAYER_BORDERS
better choice. If you graphics is really more of a button label,
then have buttons with boarders might make more sense.
+endmenu # General Look and Feel
+
+menu "Volume Control Configuration"
+
+config NXWM_MEDIAPLAYER_VOLUMESTEP
+ int "Media Player Volume Step"
+ default 5
+ ---help---
+ This increment in volume, up or down, when the volume bar is clicked.
+
+config NXWM_MEDIAPLAYER_MINVOLUMEHEIGHT
+ int "Minimum Player Volume Minimum Height"
+ default 6
+ ---help---
+ The height of the slider is automatically calculated from the height
+ of the grip image. However, we will not let the height of the grip
+ get smaller than this value.
+
+ NOTE: This width includes the size of the slider upper and lower
+ borders.
+
+endmenu # Volume Configuration"
endif # NXWM_MEDIAPLAYER
endmenu # NxWM Media Player Display Settings