packages/listener: add a config file, fix config file handling
Add a config file based on: http://projects.qi-hardware.com/index.php/p/openwrt-packages/source/tree/master/listener/files/listener.conf Fix the location where listener is looking for its configuration file (thanks to Xiangfu Liu for pointing these) git-svn-id: svn://svn.openwrt.org/openwrt/packages@28594 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
db21be1cd2
commit
a6ba01c54a
@ -31,11 +31,18 @@ define Package/listener/description
|
|||||||
again.
|
again.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
MAKE_FLAGS+= \
|
||||||
|
INSTALL_PREFIX= \
|
||||||
|
|
||||||
|
define Package/listener/conffiles
|
||||||
|
/etc/listener.conf
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/listener/install
|
define Package/listener/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/{listener,listenersoundpipe,setlistener} $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/{listener,listenersoundpipe,setlistener} $(1)/usr/bin/
|
||||||
$(INSTALL_DIR) $(1)/etc
|
$(INSTALL_DIR) $(1)/etc
|
||||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/listener.conf $(1)/etc/
|
$(INSTALL_CONF) ./files/listener.conf $(1)/etc/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,listener))
|
$(eval $(call BuildPackage,listener))
|
||||||
|
20
sound/listener/files/listener.conf
Normal file
20
sound/listener/files/listener.conf
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
wav_path = /tmp/
|
||||||
|
fname_template = listener-%h-%y%m%d-%H%M%S.wav
|
||||||
|
devname = /dev/dsp
|
||||||
|
detect_level = 1
|
||||||
|
min_duration = 10
|
||||||
|
rec_silence = 5
|
||||||
|
max_duration = 60
|
||||||
|
min_triggers = 2
|
||||||
|
sample_rate = 8000
|
||||||
|
channels = 1
|
||||||
|
format=wav
|
||||||
|
amplify = off
|
||||||
|
start_amplify = 1.5
|
||||||
|
max_amplify = 10.0
|
||||||
|
fixed_amplify = no
|
||||||
|
safe_after_filter = no
|
||||||
|
one_shot = no
|
||||||
|
|
||||||
|
#compression = a-law
|
||||||
|
#filter = ./my_filter2.so.0.1 0 3000.0 1.0
|
Loading…
x
Reference in New Issue
Block a user