-
Notifications
You must be signed in to change notification settings - Fork 1
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
[v0.6] オーディオファイルのデコード結果が正しくない #4
Comments
example/test.mp3 でしょうか。
手元の環境で再現しました。 Ogg のデコード処理は Siv3D 側の機能に任せていることを含めると、ブラウザ環境の問題というよりは、ファイルのサンプリングレートをどこかで無視してしまっていることが原因に思えます。 |
途中で Wave オブジェクトをムーブ構築するところがあるのですが、Siv3D の実装上 ムーブ構築した Wave オブジェクトにサンプリングレートが引き継がれることは保証されてなかったりするのでしょうか。 |
!! |
修正しました。 Siv3D@9ca523a |
Web版バイナリおよびサンプルアプリ更新しました https://github.com/nokotan/OpenSiv3D/actions/runs/928133900 |
強化された Audio サンプルを実行したところ、
音声ファイルの長さや再生したときの再生スピードが実際と異なっていました。
デコード時や再生時のサンプリング周波数の設定がどこかで間違っている可能性があります。
分かりやすい再現方法:
example/windmill.mp3
example/test.mp3
のaudio.lengthSec()
が実際よりも長いaudio.sampleRate()
で 44,100 Hz と表示されたり、実際の 2 倍速で再生されたりするThe text was updated successfully, but these errors were encountered: