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

Web Audio API非対応環境でアセットにmp3等の音が含まれているとロード中に止まる #133

Open
nyoronjp opened this issue Aug 28, 2014 · 1 comment

Comments

@nyoronjp
Copy link

現在作成中のゲームをmonaca.mobiでビルドしてPhoneGapによるAndroidアプリ化しようと思っていたのですが、ローディング中に止まるという自体に陥ってしまいました。

デバッガー見ると
Uncaught TypeError: Object # has no method 'createGain'
tmlib.js:18927
と出ていたのでWeb Audio APIに対応していないことによるエラーと推測しました。

色々試してみるとWindows 8.1/Windows Phone 8.1/IE 11やAndroid/内蔵ブラウザ、Android/Firefoxでもローディング中に止まり、
Web Audio API対応しているChrome for Androidでは音が小さいですがローディング、プレイに問題ありませんでした。

Web Audio API非対応による問題と思いますが報告しておきます。

tmlib.js 0.3.0
Xperia Z SO-02E Android 4.2.2
Chrome for Android v36

@phi-jp
Copy link
Owner

phi-jp commented Apr 27, 2015

わざわざありがとうございますmm
そして反応遅れて申し訳ありません.

こちら chrome が WebAudio の古い仕様である Gain 系の API を捨てた為に起きている現象かと思われます.
最新の tmlib.js 0.5.0 では改善されているのでこちらを適応していただければ治るかと思います.

<script src="http://cdn.rawgit.com/phi-jp/tmlib.js/0.5.0/build/tmlib.js"></script>

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

2 participants