1
0
forked from aniani/vim

patch 9.0.0694: no native sound support on Mac OS

Problem:    No native sound support on Mac OS.
Solution:   Add sound support for Mac OS. (Yee Cheng Chin, closes #11274)
This commit is contained in:
Yee Cheng Chin
2022-10-08 13:50:05 +01:00
committed by Bram Moolenaar
parent 5a049846e4
commit 4314e4f7da
14 changed files with 264 additions and 35 deletions

7
src/proto/os_macosx.pro Normal file
View File

@@ -0,0 +1,7 @@
/* os_macosx.m */
void process_cfrunloop();
bool sound_mch_play(const char_u* event, long sound_id, soundcb_T *callback, bool playfile);
void sound_mch_stop(long sound_id);
void sound_mch_clear();
void sound_mch_free();
/* vim: set ft=c : */

View File

@@ -1,6 +1,10 @@
/* sound.c */
typedef struct soundcb_S soundcb_T;
int has_any_sound_callback(void);
int has_sound_callback_in_queue(void);
void call_sound_callback(soundcb_T *soundcb, long sound_id, int result);
void delete_sound_callback(soundcb_T *soundcb);
void invoke_sound_callback(void);
void f_sound_playevent(typval_T *argvars, typval_T *rettv);
void f_sound_playfile(typval_T *argvars, typval_T *rettv);