Implement SoundFilePlayer HLL

Using this, Widenyo plays user-provided BGM files in the
SaveData/MusicData directory.
This commit is contained in:
kichikuou
2024-08-11 07:18:19 +09:00
parent acc869086f
commit 1f0fc09294
6 changed files with 158 additions and 41 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ int wav_get_time_length(int id);
int bgm_get_time_length(int id);
int wav_get_group_num(int id);
//int bgm_get_group_num(int id);
//int wav_prepare_from_file(int id, char *filename);
//int bgm_prepare_from_file(int id, char *filename);
int wav_prepare_from_file(int id, char *filename);
int bgm_prepare_from_file(int id, char *filename);
int wav_get_group_num_from_data_num(int no);
+1
View File
@@ -61,6 +61,7 @@ enum asset_type;
struct channel *channel_open(enum asset_type type, int no);
// Takes ownership of dfile.
struct channel *channel_open_archive_data(struct archive_data *dfile);
struct channel *channel_open_file(const char *path);
void channel_close(struct channel *ch);
int channel_play(struct channel *ch);
int channel_stop(struct channel *ch);