MengXinSheQu.AudioApi
0.0.3
See the version list below for details.
dotnet add package MengXinSheQu.AudioApi --version 0.0.3
NuGet\Install-Package MengXinSheQu.AudioApi -Version 0.0.3
<PackageReference Include="MengXinSheQu.AudioApi" Version="0.0.3"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="MengXinSheQu.AudioApi" Version="0.0.3" />
<PackageReference Include="MengXinSheQu.AudioApi"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add MengXinSheQu.AudioApi --version 0.0.3
#r "nuget: MengXinSheQu.AudioApi, 0.0.3"
#:package MengXinSheQu.AudioApi@0.0.3
#addin nuget:?package=MengXinSheQu.AudioApi&version=0.0.3
#tool nuget:?package=MengXinSheQu.AudioApi&version=0.0.3
[中文]AudioAPI
这是一个API库,该API进行了依赖嵌套,不需要添加其他依赖。
该API库向SCP:SL服务器添加了<b>玩家式播放音乐组件</b>与<b>音乐假人生成</b>,同时添加了更多事件以便开发者使用。
安装:
从Releases下载最新版本AudioAPi.dll
,这个依赖不限制版本,你可以通过EXILED
框架或LabApi
框架使用(NWAPI除外)
使用:
注意: 这个并不是一个音乐播放插件,他更偏向于处理音频/假人添加。
这个API能让你的插件更快捷的播放音频,但是该播放受SCPSL的VoiceMessage限制(仅能播放48000采样率 单轨道ogg格式音频)。
处理:
你可以复制你想要的音乐,到哔哩哔哩视频下载下载视频,通过AdobeAU或其他软件转换为48000采样率的单轨道ogg格式音频。
开发小贴士:
你可以继承VoicePlayerBase,来制作其他的组件。
同时添加了以下四种事件,你可以通过事件更好的制作你的插件。
public static event Action<TrackSelectingEventArgs> OnTrackSelecting; //选择音频
public static event Action<TrackSelectedEventArgs> OnTrackSelected; //音频选择完成
public static event Action<TrackLoadedEventArgs> OnTrackLoaded; //音频加载
public static event Action<TrackFinishedEventArgs> OnFinishedTrack; //音频播放完成
[English]AudioAPI
This is an API library. This API has nested dependencies and does not require adding any other dependencies.
This API add <b>Voice Player Component</b> and <b>Music Dummy Spawner</b> to the SCP:SL server, as well as more events for developers to use.
Download:
From Releases download AudioAPi.dll
. This API does not limit the framework. You can use EXILED
orLabApi
framework(Except NWAPI)
Infomation:
Note: This is not a music player plugin. It prefers to handle audio/dummy additions.
This API allows your plugin to play audio faster. But this was limited by SCPSL's VoiceMessage(48000sample Mono .ogg)。
Dev Tips:
These events at VoicePlayerBase
.
public static event Action<TrackSelectingEventArgs> OnTrackSelecting; //Selecting Music.
public static event Action<TrackSelectedEventArgs> OnTrackSelected; //Selected Music.
public static event Action<TrackLoadedEventArgs> OnTrackLoaded; //Load Music.
public static event Action<TrackFinishedEventArgs> OnFinishedTrack; //Finish play.
Learn more about Target Frameworks and .NET Standard.
-
- System.Buffers (>= 4.6.1)
- System.Memory (>= 4.6.3)
- System.Numerics.Vectors (>= 4.6.1)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MengXinSheQu.AudioApi:
Package | Downloads |
---|---|
YongAnFrame
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
该框架添加了音乐播放器与假人管理器