mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Remove unused abstractions
This commit is contained in:
parent
92c571c646
commit
d00031054d
1 changed files with 1 additions and 11 deletions
|
|
@ -166,16 +166,6 @@ export default class Media {
|
|||
this._emitter.trigger("channelupdate");
|
||||
}
|
||||
|
||||
_makeMono() {
|
||||
this._setChannels(1);
|
||||
}
|
||||
|
||||
_makeStereo() {
|
||||
this._setChannels(2);
|
||||
}
|
||||
_resetChannels() {
|
||||
this._setChannels(null);
|
||||
}
|
||||
/* Properties */
|
||||
duration() {
|
||||
return this._source.getDuration();
|
||||
|
|
@ -294,7 +284,7 @@ export default class Media {
|
|||
async loadFromUrl(url, autoPlay) {
|
||||
this._emitter.trigger("waiting");
|
||||
await this._source.loadUrl(url);
|
||||
this._resetChannels();
|
||||
this._setChannels(null);
|
||||
this._emitter.trigger("stopWaiting");
|
||||
if (autoPlay) {
|
||||
this.play();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue