mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
fix crash in cores than send audio early
This commit is contained in:
parent
fd3ef0ec9c
commit
7b3554fd3c
@ -23,7 +23,7 @@ var LibraryRWebAudio = {
|
||||
|
||||
getCurrentPerfTime: function() {
|
||||
if (RA.startTime) return (window['performance']['now']() - RA.startTime) / 1000;
|
||||
else throw 'getCurrentPerfTime() called before start time set';
|
||||
else return 0;
|
||||
},
|
||||
|
||||
process: function(queueBuffers) {
|
||||
@ -97,7 +97,7 @@ var LibraryRWebAudio = {
|
||||
Module["pauseMainLoop"]();
|
||||
return 1;
|
||||
},
|
||||
|
||||
|
||||
RWebAudioSampleRate: function() {
|
||||
return RA.context.sampleRate;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user