Comments (5)
途中で Wave オブジェクトをムーブ構築するところがあるのですが、Siv3D の実装上 ムーブ構築した Wave オブジェクトにサンプリングレートが引き継がれることは保証されてなかったりするのでしょうか。
from opensiv3d.
- 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.
!!
v0.6 の実装ミスで一部のコンストラクタでサンプリングレートが引き継がれていませんでした。
修正コミットを作成中です。またお手数をおかけしました。
from opensiv3d.
修正しました。 Siv3D@9ca523a
ムーブした先に引き継がれるのが正しい仕様です。
from opensiv3d.
Web版バイナリおよびサンプルアプリ更新しました
https://github.com/nokotan/OpenSiv3D/actions/runs/928133900
https://siv3d-v6-apps.kamenokosoft.com
from opensiv3d.
Related Issues (20)
- モバイルデバイスにおいて、全画面化後の表示が不安定 HOT 10
- ASYNCIFY_ADD への関数の追加が面倒
- デフォルトで gzip 圧縮をかける
- Further WebAssembly Size Optimization with `-fno-inline`
- Use WasmFS XHR backend
- error undefined symbol __stack_chk_guard と出てビルドできない HOT 1
- スマホや iPad でシーンの下部が画面外にはみ出る HOT 2
- スマホ横持ちをしたときに、画面が小さくなりすぎる HOT 1
- ブラウザの言語設定を取得する API HOT 2
- ウィンドウサイズいっぱいに描画される問題 HOT 3
- TextBoxとTextEdit::activeが同期しない HOT 1
- VS の Debug ビルドでアプリ実行時、ブラウザ画面上部にシーンに重なる赤いバーが表示される HOT 2
- Siv3D for Web アプリケーションローダを安定版/開発版で分ける
- インテリセンスが大量のエラーを報告する HOT 1
- SIMD 対応版のみを提供する HOT 1
- wasm-ld : error : unable to find library -lpng HOT 2
- ダブルクリックで起動した時に、"サーバ経由で起動するように" という旨のメッセージを表示する
- warning: undefined symbol: * がビルド時に発生する
- warning: Asyncify addlist contained a non-existing function name: * がビルド時に発生する
- モバイル環境でテキスト入力中にバックスペースが反応しない/カーソル移動ができない
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensiv3d.