diff options
| author | Teddy Wing | 2014-11-08 22:25:35 -0500 | 
|---|---|---|
| committer | Teddy Wing | 2014-11-08 22:25:35 -0500 | 
| commit | 40dd36ee551390ca0ee5d8e26ec9ca4d5d882910 (patch) | |
| tree | 56970028ad0d06e5369fdd650cafd8efd312296d | |
| parent | c2b19fadeb9364618cabf7367b67a075608ce296 (diff) | |
| download | auditory.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.
| -rw-r--r-- | plugin/auditory.vim | 6 | 
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 | 
