playground icon indicating copy to clipboard operation
playground copied to clipboard

Audio can play event keeps pausing sound on play

Open karneaud opened this issue 7 years ago • 2 comments

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.

karneaud avatar Apr 10 '17 12:04 karneaud

I think the audio engine should be replaced - and

I am using this one as it doesn't require to preload sounds before playing them http://playgroundjs.com/libs/sound-on-demand

rezoner avatar Apr 10 '17 12:04 rezoner

I need to create audio cue points/ annotation at certain time in the song currentTime position. I'm was hoping Audio Api would be a bit more useful.

karneaud avatar Apr 11 '17 00:04 karneaud