Skip to content

Audio can play event keeps pausing sound on play #51

@karneaud

Description

@karneaud

When I load a sound in the application object

forceAudioFallback: true,
create() {
    /* things to preload */
    this.loadImage("rejects","orientation")
    this.loadSound("UR-FullExtreme-Voice")
    this.loadData("cuepoints")
  },

then play the audio file in a state

create(){
  this.app.music.play('UR-FullExtreme-Voice', 0)
    console.log('playing');
  },

The audio does not play

it seems that https://github.com/rezoner/playground/blob/master/src/SoundAudio.js#L55

pauses the audio file

maybe you should remove the listener after use for loading.

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