Skip to content

Sound instances and volume  #11

Closed
Closed
@sashamirkovic

Description

@sashamirkovic

Hello,

I use this library as described however I have following problems with it. First once I write sndA = sounds[sndApathj] whenever I use in the code sndA.play() it starts another instance. Then I noticed that adjusting sndA.volume does not affect volume level at all. Also, with example code I get a errors for synth sound like:

sound.js:838 Oscillator.frequency.linearRampToValueAtTime value -1 outside nominal range [0, 24000]; value will be clamped.

Also I noticed that other functions like fade, fadeIn, fadeOut act strange (for example fadeIn is not fading in in linear fashion). Also, when one sound is playing and another sound is started overall volume is affected.

Could you please check the sound.js?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions