| 1 | #pragma once |
| 2 | |
| 3 | #include <basis/seadTypes.h> |
| 4 | #include <container/seadPtrArray.h> |
| 5 | #include <math/seadVector.h> |
| 6 | |
| 7 | namespace al { |
| 8 | class BgmDirector; |
| 9 | class BgmSituationDirector; |
| 10 | class Bgm3DParamsController; |
| 11 | class BgmLine; |
| 12 | class BgmMultiPlayingController; |
| 13 | class BgmPlayingRequest; |
| 14 | class FunctorBase; |
| 15 | class IBgmParamsChanger; |
| 16 | class IUseAudioKeeper; |
| 17 | class LiveActor; |
| 18 | class Resource; |
| 19 | |
| 20 | class BgmDataBase { |
| 21 | public: |
| 22 | static BgmDataBase* create(const char*, const char*); |
| 23 | |
| 24 | BgmDataBase(const Resource*, const Resource*); |
| 25 | }; |
| 26 | |
| 27 | BgmDirector* getBgmDirector(const IUseAudioKeeper*); |
| 28 | BgmDirector* tryGetBgmDirector(const IUseAudioKeeper*); |
| 29 | BgmSituationDirector* getBgmSituationDirector(const IUseAudioKeeper*); |
| 30 | Bgm3DParamsController* getBgm3DParamsController(const IUseAudioKeeper*); |
| 31 | BgmLine* getActiveBgmLine(const IUseAudioKeeper*); |
| 32 | BgmLine* getPlayingBgmLine(const IUseAudioKeeper*, const char*); |
| 33 | const char* getCurPlayingBgmPlayName(const IUseAudioKeeper*); |
| 34 | const char* getCurPlayingBgmResourceName(const IUseAudioKeeper*); |
| 35 | const char* getBgmPlayNameInCurPosition(const IUseAudioKeeper*, bool); |
| 36 | const char* getBgmResourceNameInCurPosition(const IUseAudioKeeper*, bool); |
| 37 | s64 getActiveBgmCurSamplePosition(const IUseAudioKeeper*); |
| 38 | s64 getBgmLoopEndSamplePosition(const IUseAudioKeeper*, const char*); |
| 39 | void startBgm(const IUseAudioKeeper*, const char*, s32, s32); |
| 40 | void startBgm(const IUseAudioKeeper*, const BgmPlayingRequest&, bool, bool); |
| 41 | void startBgmWithSuffix(const IUseAudioKeeper*, const char*, const char*, s32, s32); |
| 42 | void startAndStopBgmInCurPosition(const IUseAudioKeeper*, bool); |
| 43 | void startBgmSituation(const IUseAudioKeeper*, const char*, bool); |
| 44 | void prepareBgm(const IUseAudioKeeper*, const BgmPlayingRequest&); |
| 45 | void prepareBgmWithAreaCheck(const IUseAudioKeeper*); |
| 46 | void stopBgm(const IUseAudioKeeper*, const char*, s32); |
| 47 | void stopBgm(const IUseAudioKeeper*, const BgmPlayingRequest&); |
| 48 | void pauseBgm(const IUseAudioKeeper*, const char*, s32); |
| 49 | void resumeBgm(const IUseAudioKeeper*, const char*, s32); |
| 50 | bool isPlayingBgm(const IUseAudioKeeper*); |
| 51 | bool isPlayingBgm(const IUseAudioKeeper*, const char*); |
| 52 | bool isRunningBgm(const IUseAudioKeeper*, const char*); |
| 53 | bool isPlayingResourceCategoryBgm(const IUseAudioKeeper*, const char*); |
| 54 | void stopActiveBgm(const IUseAudioKeeper*, s32); |
| 55 | void pauseActiveBgm(const IUseAudioKeeper*, s32); |
| 56 | void resumeActiveBgm(const IUseAudioKeeper*, s32); |
| 57 | bool isPlayingActiveBgm(const IUseAudioKeeper*, const char*); |
| 58 | bool isPauseActiveBgm(const IUseAudioKeeper*); |
| 59 | void stopAllBgm(const IUseAudioKeeper*, s32); |
| 60 | void tryStopAllBgm(const IUseAudioKeeper*, s32); |
| 61 | void setTriggerEventForStopAllBgm(const IUseAudioKeeper*, const FunctorBase&); |
| 62 | void tryPauseBgmIfDifferBgmArea(const LiveActor*, const sead::Vector3f&, s32); |
| 63 | void tryPauseBgmIfLowPriority(const IUseAudioKeeper*, const char*, s32); |
| 64 | void startBgmSituation(const IUseAudioKeeper*, const char*, bool, bool); |
| 65 | void startBgmSituation(const IUseAudioKeeper*, sead::PtrArray<IBgmParamsChanger>*, const char*, |
| 66 | bool, bool); |
| 67 | void forceStartBgmSituation(const IUseAudioKeeper*, const char*, bool, bool); |
| 68 | void endBgmSituation(const IUseAudioKeeper*, const char*, bool); |
| 69 | void endBgmSituation(const IUseAudioKeeper*, sead::PtrArray<IBgmParamsChanger>*, const char*, bool); |
| 70 | void forceEndBgmSituation(const IUseAudioKeeper*, const char*, bool); |
| 71 | void startBgm3D(const IUseAudioKeeper*); |
| 72 | void endBgm3D(const IUseAudioKeeper*); |
| 73 | void changeBgm3DParams(const IUseAudioKeeper*, f32, f32, f32, f32, bool); |
| 74 | void activateBgm3DController(const IUseAudioKeeper*); |
| 75 | void deactivateBgm3DController(const IUseAudioKeeper*); |
| 76 | bool isActivateBgm3DController(const IUseAudioKeeper*); |
| 77 | s32 getActiveBgmSituationNum(const IUseAudioKeeper*); |
| 78 | const char* getActiveBgmSituationName(const IUseAudioKeeper*, s32); |
| 79 | s32 getDeactiveBgmSituationNum(const IUseAudioKeeper*); |
| 80 | const char* getDeactiveBgmSituationName(const IUseAudioKeeper*, s32); |
| 81 | void takeBgmSituationSnapShot(const IUseAudioKeeper*); |
| 82 | void applyBgmSituationSnapShot(const IUseAudioKeeper*); |
| 83 | void applyNoAppliedSituationRecord(const IUseAudioKeeper*); |
| 84 | bool isStartedBgmSituation(const IUseAudioKeeper*, const char*); |
| 85 | void endAllBgmSituation(const IUseAudioKeeper*); |
| 86 | void clearBgmDataForStepOverScene(const IUseAudioKeeper*); |
| 87 | void clearBgmPlayPointRecord(const IUseAudioKeeper*); |
| 88 | void startBgmSyncedCurBgmBeat(const IUseAudioKeeper*, const BgmPlayingRequest&, s32); |
| 89 | void stopBgmSyncedCurBgmBeat(const IUseAudioKeeper*, const BgmPlayingRequest&, s32); |
| 90 | void disableBgmLineChange(const IUseAudioKeeper*); |
| 91 | void enableBgmLineChange(const IUseAudioKeeper*); |
| 92 | bool isDisableBgmLineChange(const IUseAudioKeeper*); |
| 93 | void disableBgmSituationChange(const IUseAudioKeeper*); |
| 94 | void enableBgmSituationChange(const IUseAudioKeeper*, bool); |
| 95 | bool isDisableBgmSituationChange(const IUseAudioKeeper*); |
| 96 | BgmMultiPlayingController* tryAllocBgmMultiPlayingController(const IUseAudioKeeper*); |
| 97 | void tryReleaseBgmMultiPlayingController(const IUseAudioKeeper*, BgmMultiPlayingController*); |
| 98 | s32 getBgmLineNum(const IUseAudioKeeper*, bool); |
| 99 | BgmLine* getBgmLineAccessor(const IUseAudioKeeper*, s32, bool); |
| 100 | s32 getgBgmLineIndex(const IUseAudioKeeper*, const char*, bool); |
| 101 | void replaceBgmPlayInfoResourceName(const IUseAudioKeeper*, const char*, const char*); |
| 102 | bool isEnableRhythmAnim(const IUseAudioKeeper*, const char*); |
| 103 | bool isTriggerBeat(const IUseAudioKeeper*); |
| 104 | bool isTriggerBackBeat(const IUseAudioKeeper*); |
| 105 | bool isTriggerMeasureTop(const IUseAudioKeeper*); |
| 106 | f32 getBpm(const IUseAudioKeeper*); |
| 107 | f32 getBeatRate(const IUseAudioKeeper*); |
| 108 | f32 getCurBeat(const IUseAudioKeeper*); |
| 109 | f32 getCurBeatOnMeasure(const IUseAudioKeeper*); |
| 110 | f32 getLoopStartBeat(const IUseAudioKeeper*); |
| 111 | f32 getLoopEndBeat(const IUseAudioKeeper*); |
| 112 | f32 getFramePerMeasure(const IUseAudioKeeper*); |
| 113 | s32 getBeatPerMeasure(const IUseAudioKeeper*); |
| 114 | bool isChangeActiveBgmResourceName(const IUseAudioKeeper*); |
| 115 | bool tryRegistTargetBgmResourceName(const IUseAudioKeeper*, const char*); |
| 116 | void muteOnRunningLineTrack(IUseAudioKeeper*, u32, bool); |
| 117 | void muteOffRunningLineTrack(IUseAudioKeeper*, u32, bool); |
| 118 | |
| 119 | } // namespace al |
| 120 | |