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() {
|
getCurrentPerfTime: function() {
|
||||||
if (RA.startTime) return (window['performance']['now']() - RA.startTime) / 1000;
|
if (RA.startTime) return (window['performance']['now']() - RA.startTime) / 1000;
|
||||||
else throw 'getCurrentPerfTime() called before start time set';
|
else return 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
process: function(queueBuffers) {
|
process: function(queueBuffers) {
|
||||||
|
@ -97,7 +97,7 @@ var LibraryRWebAudio = {
|
||||||
Module["pauseMainLoop"]();
|
Module["pauseMainLoop"]();
|
||||||
return 1;
|
return 1;
|
||||||
},
|
},
|
||||||
|
|
||||||
RWebAudioSampleRate: function() {
|
RWebAudioSampleRate: function() {
|
||||||
return RA.context.sampleRate;
|
return RA.context.sampleRate;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue