Repository navigation
emu: 实例声音开关,截图存到「图片\ModAVD」 - #188
Merged
Merged
Conversation
- Instance setting "sound" (mas-avd.json instances.<i>.sound, off by default). Off boots exactly as before; on leaves out -audio none and -feature -VirtioSndCard, windowed and headless, and writes hw.audioInput / hw.audioOutput yes (no when off). Settable from the settings page, `modavd set <i> --sound on|off`, the API (PATCH sound) and MCP update_instance; shown as config.sound and in `info`. - Every boot passes -save-path <Pictures>\ModAVD (FOLDERID_Pictures on Windows, ~/Pictures elsewhere), created first; left out when the folder is unknown or cannot be made. Refs ModAVD/ModAVD#226 Refs ModAVD/ModAVD#231
Changing only the sound switch no longer validates or rewrites memory, cores or the data disk (like the diagnostics switch), so an old 8 GB instance can turn sound on and AUTO-MAS's automatic memory stays. Refs ModAVD/ModAVD#226
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs ModAVD/ModAVD#226
Refs ModAVD/ModAVD#231
声音(#226)
mas-avd.json的instances.<i>.sound,默认关;没写或不是true都按关算。-audio none和-feature -VirtioSndCard。config.ini的hw.audioInput/hw.audioOutput跟开关一起写yes/no。只改声音时只写这两个键和sound,不重新校验、不重写内存、核数和数据盘(和诊断开关一样),老实例也能直接开。modavd set <i> --sound on|off、JSON 的config.sound、PATCH /api/instances/{i}和 MCPupdate_instance的sound。changelog.d/226-sound.feat.md。截图保存位置(#231)
-save-path <图片>\ModAVD,开机前建好目录。Windows 用SHGetKnownFolderPath(FOLDERID_Pictures);其他平台用~/Pictures/ModAVD(~/Pictures存在时)。拿不到或建不了就不传,只记一条警告,模拟器用它自己的默认位置。-save-path是官方模拟器原有的参数,旧版模拟器也认。测试
gofmt、go vet ./...(windows、darwin/arm64、linux/amd64)、go test ./...全过;node --test scripts/*.mjs77 个全过。-save-path不传、不建目录、不写hw.audio*/sound、只改声音的轻路径去掉或条件写错等)都被单测抓到。