Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/managers/StreamingAudioChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,11 @@ export class StreamingAudioChannel extends BaseAudioChannel implements IAudioCha

this._sourceBuffer.removeEventListener('updateend', this._updateEndDelegate);
this._mediaSource.removeSourceBuffer(this._sourceBuffer);
delete this._sourceBuffer;
this._sourceBuffer = null;
}

this._mediaSource.removeEventListener('sourceopen', this._sourceOpenDelegate);
URL.revokeObjectURL(this._urlString);
delete this._mediaSource;
this._mediaSource = null;
}
}
}
4 changes: 1 addition & 3 deletions lib/parsers/WaveAudioParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export class WaveAudioParser extends ParserBase {
}

protected startParsing(frameLimit: number): void {
//clear content
delete this._content;
this._content = null;

super.startParsing(frameLimit);
Expand Down Expand Up @@ -83,4 +81,4 @@ export class WaveAudioParser extends ParserBase {

return null;
}
}
}