Giter VIP home page Giter VIP logo

Comments (5)

nokotan avatar nokotan commented on June 23, 2024 1

途中で Wave オブジェクトをムーブ構築するところがあるのですが、Siv3D の実装上 ムーブ構築した Wave オブジェクトにサンプリングレートが引き継がれることは保証されてなかったりするのでしょうか。

from opensiv3d.

nokotan avatar nokotan commented on June 23, 2024
  • example/windmill.mp3 の audio.lengthSec() が実際よりも長い

example/test.mp3 でしょうか。
Safari, Chrome on macOS で 103秒 = 1分43秒と表示され、これは元ファイルの再生時間 (1分43秒) に一致しました。
Chrome on Windows では、112秒 = 1分52秒と表示され、元ファイルより音程が低く、すこし遅く再生されました。

  • サンプリング周波数 22,050 Hz の Ogg ファイルを自前で用意してロードすると audio.sampleRate() で 44,100 Hz と表示されたり、実際の 2 倍速で再生されたりする

手元の環境で再現しました。

Ogg のデコード処理は Siv3D 側の機能に任せていることを含めると、ブラウザ環境の問題というよりは、ファイルのサンプリングレートをどこかで無視してしまっていることが原因に思えます。

from opensiv3d.

Reputeless avatar Reputeless commented on June 23, 2024

!!
v0.6 の実装ミスで一部のコンストラクタでサンプリングレートが引き継がれていませんでした。
修正コミットを作成中です。またお手数をおかけしました。

from opensiv3d.

Reputeless avatar Reputeless commented on June 23, 2024

修正しました。 Siv3D@9ca523a
ムーブした先に引き継がれるのが正しい仕様です。

from opensiv3d.

nokotan avatar nokotan commented on June 23, 2024

Web版バイナリおよびサンプルアプリ更新しました

https://github.com/nokotan/OpenSiv3D/actions/runs/928133900
https://siv3d-v6-apps.kamenokosoft.com

from opensiv3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.