SAAT - 音频 API 和工具包

创作者: ZeroMetres
已更新:2022-02-01 10:54:33
26KB

关于此 MOD

音频API和SMAPI的音频管理,无需Harmony。添加自定义音轨。
Audio API & Audio Management for SMAPI, without any utilization of HarmonyLib.
Add custom music to your mods!


What does this mod do?

SAAT is a framework aimed to adding, managing, and modifying audio tracks in Stardew Valley. In addition, it seeks to improve the audio engine at a later date, as XNA / MonoGame's audio engine is lackluster in memory management and support. It aims to be harmony-less.

You can see examples of how to add custom audio tracks from the Documentation on Github


New in v1.1.2:
- Fixed a bug that resulted in the warning message "Could not find a CueDefinition with the name 'title_day' "

New in v1.1.1:
- A fail-safety feature to prevent the game from crashing when a cue is incorrectly called / not found.
-- Upon failure, a "Defaulting Cue" is played. This cue plays silence.
- The ability to forcibly add audio tracks to the jukebox. See "addtojukebox" command.
-- This is to cover migrations. Mods that migrated from Custom Music to SAAT will have all custom tracks removed from the jukebox playlist due to the prefix (cm:) notation CM required. SAAT validates all tracks in the jukebox and removes ones that are missing to prevent.

New in v1.1.0:
- Add Audio Track Settings.
-- You can now set an entry in tracks.json to continuously loop.
-- You can now set an entry to immediately add itself to the jukebox when a new game is created.
- The command "setdebug" has been renamed to "audiodebug", as there is a high possibility of conflict with other mods.
- The command "gen_track_json" has been renamed to "tracktemplate".
- The command "audio_allocs" has been renamed to "audioallocs".
- The audioallocs command has had some formatting fixes.
- The audioallocs command has an optional parameter now. Adding a track id will provide further details for a specific track.
- Some internal restructuring was done.
- Documentation update.

Current Functionality:
Allow brand new music and sound effects to be added into Stardew Valley
Allows music to be added into the jukebox.

Not Yet Implemented / Upcoming features:


Audio Track Replacement / Overrides
An individual can replace replace existing audio tracks with another, overriding vanilla assets in a non-destructable manner.

Audio Signal Processing (APS or DPS)


Upcoming feature that will allow for audio to undergo low-pass, high-pass, altered pitch, effects, and more without the need to create another track.

Proper memory management

This is to be the prime feature of the API. As of now, Stardew Valley relies on XNA / MonoGame to handle memory management for audio. The memory management is poor in design, as it loads all or nothing. Typically, audio is chunked into memory rather than retailing it all at once. This creates a very large consumption of memory.

In example, the winter music tracks are loaded into memory at the beginning of the game. Even if its spring. You won't hear the audio track for 3/4th of the game, yet it is still consuming memory.

Note: This subset of the API / Mod will be written in C. Native is required to ensure performance.

Packed Audio Format

In conjunction with proper memory management, audio is to be compacted into binary files on a per mod basis. This allows for faster loading / unloading / reloading operating.

It will not be required, but it will optimizes performance. Especially for larger audio files.

Toolkit for Packed Audio Format

To assist and encourage content creators in optimizing audio for performance, a tool will be provided to create the packed audio format mentioned above.

Source Code and Documentation

星露谷物语 的热门 MOD

探索适用于 星露谷物语 的最佳MOD,带来新功能、升级画面,以及令人兴奋的方式来改变您的游戏体验。

内容修补程序

Pathoschild2025-07-28 06:03:57

加载内容包,更改游戏的数据、图像和地图,而不替换XNB文件。

内容补丁

Pathoschild2025-10-26 17:17:30

加载内容包,这些内容包会更改游戏的数据、图像和地图,而不会替换 XNB 文件。

SMAPI-Stardew修改API

Pathoschild2025-07-15 09:52:47

Stardew Valley的mod加载器。

NPC地图位置

Bouhm2025-05-26 10:22:12

在地图上看到NPC和玩家,有一个可选的小地图。

CJB秘籍菜单

Pathoschild2025-07-28 06:19:19

一个简单的游戏作弊菜单,有很多作弊。

SpaceCore

spacechase02025-05-28 10:06:38

A framework mod used by some of my other mods.

星露谷扩建

FlashShifter2025-07-01 07:17:39

mod描述游戏中玩家扮演继承了爷爷农场的“Stardew valley”主角开阔和经营整座小牧场。 你继承了爷爷在星露谷的农场,但是你手头上只有最基础的农具和少许的金钱,你得靠此开始你的新生活。你能把这片杂草丛生的田地变成一个繁荣的家园吗?这很不容易,自从JOJA公司来到了小镇,以前的生活都变了。社区中心,这个曾经是小镇最活跃的地方,如今却是破烂不堪。但山谷里似乎充满了机会,只要你肯努力,就有可能把星露谷变得更繁荣。 开始游戏后,玩家可以通过捏人的方式创建自己所喜爱的角色。人物共有24种肤色,32

农场类型经理(FTM)

EscaMMC2025-07-22 13:55:17

农场类型管理器(FTM)是一个框架,允许其他模组在游戏中的任何地方生成对象和怪物,具有各种控制和自定义选项。

使用 Xmod 解锁 星露谷物语 的全部潜力 — 今天就探索这些顶级 MOD!