From 40dd36ee551390ca0ee5d8e26ec9ca4d5d882910 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 8 Nov 2014 22:25:35 -0500 Subject: plugin/auditory.vim(auditory#Play()): Takes a filename argument Make the `Play()` function take an argument of the filename/path string. --- plugin/auditory.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin') 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 -- cgit v1.2.3