aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/auditory.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/auditory.vim')
-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