File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ static int MusicHTML5_Open(const SDL_AudioSpec *spec)
204
204
audio .currentTime = 0 ;
205
205
audio .play ();
206
206
} else
207
- this .resetMusicState (audio );
207
+ Module [ "SDL2Mixer" ] .resetMusicState (audio );
208
208
},
209
209
210
210
musicError : function (e ) {
@@ -215,13 +215,11 @@ static int MusicHTML5_Open(const SDL_AudioSpec *spec)
215
215
216
216
Module ["printErr" ]("Error " + audio .error .code + "; details: " + audio .error .message );
217
217
218
- // Reset to defaults
219
- this .resetMusicState (audio );
218
+ Module ["SDL2Mixer" ].resetMusicState (audio );
220
219
},
221
220
222
221
musicInterrupted : function (e ) {
223
- // Reset to defaults
224
- this .resetMusicState (e .target );
222
+ Module ["SDL2Mixer" ].resetMusicState (e .target );
225
223
}
226
224
};
227
225
}), html5_handle_music_stopped );
You can’t perform that action at this time.
0 commit comments