Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Fix a bug that prevents play function to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
danigb committed Oct 6, 2016
1 parent d140bfe commit 1e4feae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/soundfont-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,12 +863,17 @@ function SamplePlayer (ac, source, options) {
if (opts.duration) node.stop(when + opts.duration)
return node
}

// NOTE: start will be override so we can't copy the function reference
// this is obviously not a good design, so this code will be gone soon.
/**
* An alias for `player.start`
* @see player.start
* @since 0.3.0
*/
player.play = player.start
player.play = function (name, when, options) {
return player.start(name, when, options)
}

/**
* Stop some or all samples
Expand Down
Loading

0 comments on commit 1e4feae

Please sign in to comment.