Skip to content

MasaoJSS.restart()が画像・音声リソースを開放せず重複してロードしなおすバグ #68

@Tatamo

Description

@Tatamo

restart()を複数回呼び出すとその度にAudioContextが生成されるため、何度か呼び出した状態で音声ファイルを再生しようとすると以下のエラーが発生してゲームが停止します。

Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6).

参考:
http://m06t625.81.la/masao/taikai_2010/game.html
その他→全ステージ解放を行った後、
ステージ6を開始→Zキーでイベントスキップ→タイトルに戻る
を複数回繰り返すと上記エラーが再現します。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions