From 979db409ef890e94e7f9637f3c8410e6eaf25b65 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 23 Jul 2014 14:45:54 -0600 Subject: NxWM: Add configuration options to filter CMediaPlayer files based on extension --- apps/NxWidgets/Kconfig | 98 ++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 80 insertions(+), 18 deletions(-) (limited to 'apps') diff --git a/apps/NxWidgets/Kconfig b/apps/NxWidgets/Kconfig index ccef01ddb..8bd5ef26d 100644 --- a/apps/NxWidgets/Kconfig +++ b/apps/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 -- cgit v1.2.3