aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2014-11-08 22:25:35 -0500
committerTeddy Wing2014-11-08 22:25:35 -0500
commit40dd36ee551390ca0ee5d8e26ec9ca4d5d882910 (patch)
tree56970028ad0d06e5369fdd650cafd8efd312296d /plugin
parentc2b19fadeb9364618cabf7367b67a075608ce296 (diff)
downloadauditory.vim-40dd36ee551390ca0ee5d8e26ec9ca4d5d882910.tar.bz2
plugin/auditory.vim(auditory#Play()): Takes a filename argument
Make the `Play()` function take an argument of the filename/path string.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auditory.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/auditory.vim b/plugin/auditory.vim
index 92e1418..aec1409 100644
--- a/plugin/auditory.vim
+++ b/plugin/auditory.vim
@@ -12,13 +12,13 @@ function! s:KillPid(pid)
endfunction
" Play audio
-function! auditory#Play()
- call system("mplayer ./private/test-track.mp3 &")
+function! auditory#Play(file)
+ call system("mplayer " . a:file . " &")
endfunction
" Insert mode functions
function! s:PlayInsertEnter()
- call auditory#Play()
+ call auditory#Play("./private/test-track.mp3")
let s:insert_mode_pid = s:GetPid()
endfunction