-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsound.h
32 lines (27 loc) · 1.17 KB
/
sound.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "types.h"
bool vsk_sound_init(void);
void vsk_sound_exit(void);
void vsk_sound_play(const void *data, size_t data_size);
bool vsk_sound_is_playing(void);
bool vsk_sound_wait(VskDword milliseconds);
void vsk_sound_stop(void);
bool vsk_sound_voice_reg(int addr, int data);
enum VSK_SOUND_ERR
{
VSK_SOUND_ERR_SUCCESS = 0,
VSK_SOUND_ERR_ILLEGAL,
VSK_SOUND_ERR_IO_ERROR,
};
// CMD SING
VSK_SOUND_ERR vsk_sound_cmd_sing(const char *str);
VSK_SOUND_ERR vsk_sound_cmd_sing(const wchar_t *str);
VSK_SOUND_ERR vsk_sound_cmd_sing_save(const char *str, const wchar_t *filename);
VSK_SOUND_ERR vsk_sound_cmd_sing_save(const wchar_t *wstr, const wchar_t *filename);
// CMD PLAY
bool vsk_sound_cmd_play_ssg(const std::vector<VskString>& strs);
bool vsk_sound_cmd_play_fm_and_ssg(const std::vector<VskString>& strs);
bool vsk_sound_cmd_play_fm(const std::vector<VskString>& strs);
bool vsk_sound_cmd_play_ssg_save(const std::vector<VskString>& strs, const wchar_t *filename);
bool vsk_sound_cmd_play_fm_and_ssg_save(const std::vector<VskString>& strs, const wchar_t *filename);
bool vsk_sound_cmd_play_fm_save(const std::vector<VskString>& strs, const wchar_t *filename);