Skip to content

v1.0.1

Choose a tag to compare

@sethbrasile sethbrasile released this 01 Dec 22:52
15afe72

You can now set gain and pan and start a sampler immediately after creating a sound, with either setting of Ember’s default-async-observers feature.

  • Editing the route of a playing or scheduled sound keeps its source stoppable. Inserting or removing an effect cuts the old signal path, so audio reaches the output once.
  • Sounds can share an output bus, and app-wired stereo channels stay connected when another route changes. Routes supplied as an Ember ArrayProxy support live edits.
  • Fixes to the audio service and module exports let the addon load on newer Ember versions and build with Vite. The release was tested across Ember 2.18 through 7.4. CI results

Upgrading from 1.0.0

Audio loads now use window.fetch. If your app imports fetch from 'fetch' and relied on this addon to install ember-fetch, add ember-fetch to your app’s dependencies.

In tests, use a mock that intercepts window.fetch. Pretender 2.0.0 let the request reach the network. Versions 2.1.0, 2.1.2 and 3.4.7 intercepted it. Ember’s settled() can finish before decoding completes. To wait for a sound, await the load directly.

const sound = await audio.load('/audio/kick.wav').asSound('kick');

Package on npm · Full changelog