summaryrefslogtreecommitdiff
path: root/src/sound.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-10 13:11:22 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-10 13:11:22 +0200
commit3ff5f0f05d437a6b3eaf3caa5dc2762b49314617 (patch)
tree8ea013e3bb1441b897d232b0139b711d5612d6f0 /src/sound.c
parent38ea784fecf7921dca83ddc75fe9cb40708521b2 (diff)
downloadvim-git-3ff5f0f05d437a6b3eaf3caa5dc2762b49314617.tar.gz
patch 8.1.1513: all popup functionality is in functions, except :popupclearv8.1.1513
Problem: All popup functionality is in functions, except :popupclear. Solution: Add popup_clear() for consistency. Also rename sound_stopall() to sound_clear().
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/sound.c b/src/sound.c
index ac6c377be..e28ccff90 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -156,12 +156,18 @@ f_sound_playevent(typval_T *argvars, typval_T *rettv)
sound_play_common(argvars, rettv, FALSE);
}
+/*
+ * implementation of sound_playfile({path} [, {callback}])
+ */
void
f_sound_playfile(typval_T *argvars, typval_T *rettv)
{
sound_play_common(argvars, rettv, TRUE);
}
+/*
+ * implementation of sound_stop({id})
+ */
void
f_sound_stop(typval_T *argvars, typval_T *rettv UNUSED)
{
@@ -169,8 +175,11 @@ f_sound_stop(typval_T *argvars, typval_T *rettv UNUSED)
ca_context_cancel(context, tv_get_number(&argvars[0]));
}
+/*
+ * implementation of sound_clear()
+ */
void
-f_sound_stopall(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
+f_sound_clear(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
{
if (context != NULL)
{