mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 12:36:35 +00:00
Use buffer source
This commit is contained in:
parent
599cd54e51
commit
7ae4b7bec6
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/* Emulate the native <audio> element with Web Audio API */
|
||||
import { BANDS } from "../constants";
|
||||
import BufferSource from "./bufferSource";
|
||||
import ElementSource from "./elementSource";
|
||||
//import ElementSource from "./elementSource";
|
||||
|
||||
export default class Media {
|
||||
constructor(fileInput) {
|
||||
|
|
@ -76,8 +76,8 @@ export default class Media {
|
|||
// |
|
||||
// <destination>
|
||||
|
||||
//this._source = new ElementSource(this._context, this._staticSource);
|
||||
this._source = new BufferSource(this._context, this._staticSource);
|
||||
this._source = new ElementSource(this._context, this._staticSource);
|
||||
|
||||
this._source.on("positionChange", () => {
|
||||
this._callbacks.timeupdate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue