mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 11:12:35 +01:00
dont queue jukebox sounds when autoplay blocked
This commit is contained in:
parent
0462d08e15
commit
04460c3b8e
@ -194,6 +194,13 @@ export class MusicPlayer
|
|||||||
{
|
{
|
||||||
if(!this._currentSong || !this._sequence) return;
|
if(!this._currentSong || !this._sequence) return;
|
||||||
|
|
||||||
|
//@ts-ignore
|
||||||
|
if(!Howler._audioUnlocked)
|
||||||
|
{
|
||||||
|
//console.log('skipping due to locked audio');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for(const sequencyEntry of this._sequence)
|
for(const sequencyEntry of this._sequence)
|
||||||
{
|
{
|
||||||
const entry = sequencyEntry[pos];
|
const entry = sequencyEntry[pos];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user