mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-08 22:59:57 +03:00
Part of StoatSpriteEngine and KiwiSoundEngine. This fixes an issue with per-channel volume settings not working correctly in Haruurare (and presumably other games).
104 lines
3.8 KiB
C
104 lines
3.8 KiB
C
/* Copyright (C) 2021 Nunuhara Cabbage <nunuhara@haniwa.technology>
|
|
*
|
|
* 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 <http://gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include "system4.h"
|
|
|
|
#include "hll.h"
|
|
#include "audio.h"
|
|
|
|
HLL_WARN_UNIMPLEMENTED( , void, KiwiSoundEngine, SetGlobalFocus, possibly_unused int nNum);
|
|
|
|
//int KiwiSoundEngine_Sound_GetGroupNum(int nCh);
|
|
//static bool KiwiSoundEngine_Sound_PrepareFromFile(int ch, struct string *filename);
|
|
//static int KiwiSoundEngine_Sound_GetDataLength(int data_number);
|
|
|
|
static int KiwiSoundEngine_GetMasterGroup(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int KiwiSoundEngine_GetBGMGroup(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int KiwiSoundEngine_GetSEGroup(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int KiwiSoundEngine_GetVoiceGroup(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int KiwiSoundEngine_GetGimicSEGroup(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int KiwiSoundEngine_GetBackVoiceGroup(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
HLL_LIBRARY(KiwiSoundEngine,
|
|
HLL_EXPORT(SetGlobalFocus, KiwiSoundEngine_SetGlobalFocus),
|
|
HLL_EXPORT(Music_IsExist, bgm_exists),
|
|
HLL_EXPORT(Music_Prepare, bgm_prepare),
|
|
HLL_EXPORT(Music_Unprepare, bgm_unprepare),
|
|
HLL_EXPORT(Music_Play, bgm_play),
|
|
HLL_EXPORT(Music_Stop, bgm_stop),
|
|
HLL_EXPORT(Music_IsPlay, bgm_is_playing),
|
|
HLL_EXPORT(Music_SetLoopCount, bgm_set_loop_count),
|
|
HLL_EXPORT(Music_GetLoopCount, bgm_get_loop_count),
|
|
HLL_EXPORT(Music_SetLoopStartPos, bgm_set_loop_start_pos),
|
|
HLL_EXPORT(Music_SetLoopEndPos, bgm_set_loop_end_pos),
|
|
HLL_EXPORT(Music_Fade, bgm_fade),
|
|
HLL_EXPORT(Music_StopFade, bgm_stop_fade),
|
|
HLL_EXPORT(Music_IsFade, bgm_is_fading),
|
|
HLL_EXPORT(Music_Pause, bgm_pause),
|
|
HLL_EXPORT(Music_Restart, bgm_restart),
|
|
HLL_EXPORT(Music_IsPause, bgm_is_paused),
|
|
HLL_EXPORT(Music_GetPos, bgm_get_pos),
|
|
HLL_EXPORT(Music_GetLength, bgm_get_length),
|
|
HLL_EXPORT(Music_GetSamplePos, bgm_get_sample_pos),
|
|
HLL_EXPORT(Music_GetSampleLength, bgm_get_sample_length),
|
|
HLL_EXPORT(Music_Seek, bgm_seek),
|
|
//HLL_EXPORT(Music_MillisecondsToSamples, KiwiSoundEngine_Music_MillisecondsToSamples),
|
|
//HLL_EXPORT(Music_GetFormat, KiwiSoundEngine_Music_GetFormat),
|
|
HLL_EXPORT(Sound_IsExist, wav_exists),
|
|
HLL_EXPORT(Sound_Prepare, wav_prepare),
|
|
HLL_EXPORT(Sound_Unprepare, wav_unprepare),
|
|
HLL_EXPORT(Sound_Play, wav_play),
|
|
HLL_EXPORT(Sound_Stop, wav_stop),
|
|
HLL_EXPORT(Sound_IsPlay, wav_is_playing),
|
|
HLL_EXPORT(Sound_Fade, wav_fade),
|
|
HLL_EXPORT(Sound_StopFade, wav_stop_fade),
|
|
HLL_EXPORT(Sound_IsFade, wav_is_fading),
|
|
HLL_EXPORT(Sound_GetTimeLength, wav_get_time_length),
|
|
HLL_TODO_EXPORT(Sound_GetGroupNum, KiwiSoundEngine_Sound_GetGroupNum),
|
|
HLL_EXPORT(Sound_GetGroupNumFromDataNum, wav_get_group_num_from_data_num),
|
|
HLL_TODO_EXPORT(Sound_PrepareFromFile, KiwiSoundEngine_Sound_PrepareFromFile),
|
|
HLL_TODO_EXPORT(Sound_GetDataLength, KiwiSoundEngine_Sound_GetDataLength),
|
|
HLL_EXPORT(GetMasterGroup, KiwiSoundEngine_GetMasterGroup),
|
|
HLL_EXPORT(GetBGMGroup, KiwiSoundEngine_GetBGMGroup),
|
|
HLL_EXPORT(GetSEGroup, KiwiSoundEngine_GetSEGroup),
|
|
HLL_EXPORT(GetVoiceGroup, KiwiSoundEngine_GetVoiceGroup),
|
|
HLL_EXPORT(GetGimicSEGroup, KiwiSoundEngine_GetGimicSEGroup),
|
|
HLL_EXPORT(GetBackVoiceGroup, KiwiSoundEngine_GetBackVoiceGroup)
|
|
);
|