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

Audio play failure #445

Closed
nighca opened this issue Apr 30, 2024 · 5 comments
Closed

Audio play failure #445

nighca opened this issue Apr 30, 2024 · 5 comments
Assignees

Comments

@nighca
Copy link
Collaborator

nighca commented Apr 30, 2024

项目:empty-2.zip

其中有问题的音频:explosion.mp3.zip

在浏览器中运行游戏时,音频播放会失败(本地运行游戏时可以正常播放):

Image

https://github.com/goplus/spx/blob/7f46dc7879e2320a9889f1396b9e592efb6d888d/audio.go#L44-L46

@ComfyFluffy
Copy link
Contributor

zelda (4).zip

只对于特定的音频会出错。zip包中音频为浏览器录制,浏览器 Arc,版本:124.0.6367.92 (Official Build) (arm64)

@JiepengTan
Copy link
Collaborator

这边显示 是fs 不能进行seek导致的,zip 打开的文件时候需要支持 io.ReadSeeker & io.Closer 这两个接口 (可以尝试先解压)
主要是需要支持接口: Seek(offset int64, whence int) (int64, error)

@nighca
Copy link
Collaborator Author

nighca commented May 10, 2024

@JiepengTan 明白了,看起来要去 zipfs 里加;我们搞一下

@nighca
Copy link
Collaborator Author

nighca commented May 10, 2024

只对于特定的音频会出错

那应该是有的音频在播放的时候不需要 fs seek,有的需要,所以引发问题

@ComfyFluffy
Copy link
Contributor

#480

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

No branches or pull requests

3 participants