Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Strongly review requested]新增了从url异步下载并播放音乐的功能(我觉得我写的不行别拷打我抑郁症) #29

Closed

Conversation

ShirakamiAme
Copy link
Contributor

No description provided.

@YongAn404 YongAn404 self-requested a review December 13, 2024 01:08
@YongAn404 YongAn404 changed the base branch from master to dev December 13, 2024 01:09
Signed-off-by: 永安404 <101850798+YongAn404@users.noreply.github.com>
Copy link
Member

@YongAn404 YongAn404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public async Task<AudioPlayerBase> NetPlayAsync(string url, string npcName, TrackEvent trackEvent, FramePlayer source, float distance, FramePlayer[] extraPlay, bool isSole = false, float volume = 80, bool isLoop = false)

1.应该保证除主线程以外的线程不会调用 Unity API
2.SCPSLAudioApi已经支持 url 访问功能

只需要调这个即可支持 url

audioPlayerBase.AllowUrl = true;

@ShirakamiAme ShirakamiAme closed this by deleting the head repository Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants