From 94d7e0cd5d581856df1807f8dd0990fce7047cdb Mon Sep 17 00:00:00 2001 From: kichikuou Date: Mon, 21 Mar 2022 21:42:46 +0900 Subject: [PATCH] Add stub for SoundFilePlayer For Widenyo. --- src/ffi.c | 2 ++ src/hll/SoundFilePlayer.c | 43 +++++++++++++++++++++++++++++++++++++++ src/meson.build | 1 + 3 files changed, 46 insertions(+) create mode 100644 src/hll/SoundFilePlayer.c diff --git a/src/ffi.c b/src/ffi.c index f2545a1..29e69b5 100644 --- a/src/ffi.c +++ b/src/ffi.c @@ -327,6 +327,7 @@ extern struct static_library lib_PlayMovie; extern struct static_library lib_SACT2; extern struct static_library lib_SACTDX; extern struct static_library lib_SengokuRanceFont; +extern struct static_library lib_SoundFilePlayer; extern struct static_library lib_StoatSpriteEngine; extern struct static_library lib_SystemService; extern struct static_library lib_SystemServiceEx; @@ -377,6 +378,7 @@ static struct static_library *static_libraries[] = { &lib_SACT2, &lib_SACTDX, &lib_SengokuRanceFont, + &lib_SoundFilePlayer, &lib_StoatSpriteEngine, &lib_SystemService, &lib_SystemServiceEx, diff --git a/src/hll/SoundFilePlayer.c b/src/hll/SoundFilePlayer.c new file mode 100644 index 0000000..b21f6e4 --- /dev/null +++ b/src/hll/SoundFilePlayer.c @@ -0,0 +1,43 @@ +/* Copyright (C) 2022 kichikuou + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see . + */ + +#include "hll.h" + +//bool SoundFilePlayer_Load(struct string *FileName); +//void SoundFilePlayer_Release(void); +//bool SoundFilePlayer_Play(int PlayCount); +HLL_WARN_UNIMPLEMENTED(false, bool, SoundFilePlayer, Stop, void); +//bool SoundFilePlayer_IsPlay(void); +//int SoundFilePlayer_GetDuration(void); +//int SoundFilePlayer_GetPosition(void); +//bool SoundFilePlayer_BeginFadeVolume(int Volume, int Time); +//bool SoundFilePlayer_StopFadeVolume(void); +//bool SoundFilePlayer_IsFadeVolume(void); +//bool SoundFilePlayer_Update(void); + +HLL_LIBRARY(SoundFilePlayer, + HLL_TODO_EXPORT(Load, SoundFilePlayer_Load), + HLL_TODO_EXPORT(Release, SoundFilePlayer_Release), + HLL_TODO_EXPORT(Play, SoundFilePlayer_Play), + HLL_EXPORT(Stop, SoundFilePlayer_Stop), + HLL_TODO_EXPORT(IsPlay, SoundFilePlayer_IsPlay), + HLL_TODO_EXPORT(GetDuration, SoundFilePlayer_GetDuration), + HLL_TODO_EXPORT(GetPosition, SoundFilePlayer_GetPosition), + HLL_TODO_EXPORT(BeginFadeVolume, SoundFilePlayer_BeginFadeVolume), + HLL_TODO_EXPORT(StopFadeVolume, SoundFilePlayer_StopFadeVolume), + HLL_TODO_EXPORT(IsFadeVolume, SoundFilePlayer_IsFadeVolume), + HLL_TODO_EXPORT(Update, SoundFilePlayer_Update) + ); diff --git a/src/meson.build b/src/meson.build index 8e4a2c2..1933a16 100644 --- a/src/meson.build +++ b/src/meson.build @@ -74,6 +74,7 @@ xsystem4 = ['audio.c', 'hll/PlayMovie.c', 'hll/SACT2.c', 'hll/SengokuRanceFont.c', + 'hll/SoundFilePlayer.c', 'hll/StoatSpriteEngine.c', 'hll/SystemService.c', 'hll/SystemServiceEx.c',